File tree Expand file tree Collapse file tree 2 files changed +32
-14
lines changed Expand file tree Collapse file tree 2 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -20,28 +20,34 @@ jobs:
20
20
- uses : actions/checkout@v2
21
21
with :
22
22
fetch-depth : 500
23
- - name : Install musl-tools
24
- run : " sudo apt-get install musl-tools "
25
- - uses : actions-rs/toolchain@v1
26
- with :
27
- profile : minimal
28
- toolchain : stable
29
- target : x86_64-unknown-linux-musl
30
- default : true
23
+
24
+ - name : Install vagga
25
+ run : |
26
+ echo 'deb [arch=amd64 trusted=yes] https://ubuntu.zerogw.com vagga-testing main' | \
27
+ sudo tee /etc/apt/sources.list.d/vagga.list
28
+ sudo apt-get update
29
+ sudo apt-get install -y vagga
30
+
31
31
- uses : Swatinem/rust-cache@v1
32
- - name : Cache multiple paths
32
+
33
+ - name : Vagga tests cache
33
34
uses : actions/cache@v2
34
35
with :
35
36
path : |
36
37
tmp/cache
37
38
key : vagga-cache-v1
38
- - run : |
39
- make release # slower build, faster tests
39
+
40
+ - name : Build and run tests
41
+ env :
42
+ UBUNTU_MIRROR : http://mirrors.us.kernel.org/ubuntu/
43
+ run : |
44
+ export VAGGA_SETTINGS="
45
+ cache-dir: ${GITHUB_WORKSPACE}/tmp/cache
46
+ external-volumes:
47
+ cargo: ${HOME}/.cargo"
48
+ vagga make-release-ci
40
49
./vagga -eUBUNTU_MIRROR test \
41
50
-j 8 \
42
51
--no-parallelize-within-files \
43
52
--verbose-run \
44
53
tests
45
- env:
46
- UBUNTU_MIRROR: http://mirrors.us.kernel.org/ubuntu/
47
-
Original file line number Diff line number Diff line change @@ -149,6 +149,18 @@ commands:
149
149
container : rust-musl
150
150
run : [make, release]
151
151
152
+ make-release-ci : !Command
153
+ description : Build vagga with optimizations
154
+ prerequisites : [_mk-cargo-dir]
155
+ container : rust-musl
156
+ volumes :
157
+ /work/target/.cargo : !BindRW /volumes/cargo
158
+ run : [make, release]
159
+
160
+ _mk-cargo-dir : !Command
161
+ container : rust-musl
162
+ run : mkdir -p target/.cargo
163
+
152
164
make-test : !Command
153
165
description : Build vagga for tests
154
166
container : rust-musl
You can’t perform that action at this time.
0 commit comments