File tree 3 files changed +27
-12
lines changed
3 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Build sample material
2
2
3
+ env :
4
+ CARGO_TERM_COLOR : always # We want colors in our CI output
5
+ CARGO_INCREMENTAL : 0 # Don't waste time writing out incremental build files
6
+ CARGO_PROFILE_TEST_DEBUG : 0 # These are thrown away anyways, don't produce them
7
+
3
8
on :
4
9
push :
5
10
pull_request :
17
22
with :
18
23
tool : mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.10
19
24
25
+ # `minimal` profile avoids downloading `rustdocs`, `clippy`, etc.
20
26
- name : Install targets
21
27
run : |
28
+ rustup set profile minimal
22
29
rustup target add thumbv7em-none-eabihf
23
30
rustup component add rust-src
24
31
rustup component add rustfmt
51
58
with :
52
59
artifacts : " ./rust-exercises-${{ env.slug }}.zip,./rust-exercises-${{ env.slug }}/nrf52-code/boards/dongle-fw/*-fw"
53
60
allowUpdates : true
54
- updateOnlyUnreleased : true
61
+ updateOnlyUnreleased : true
62
+
Original file line number Diff line number Diff line change 1
1
name : Weekly Canary Build
2
2
3
+ env :
4
+ CARGO_TERM_COLOR : always # We want colors in our CI output
5
+ CARGO_INCREMENTAL : 0 # Don't waste time writing out incremental build files
6
+ CARGO_PROFILE_TEST_DEBUG : 0 # These are thrown away anyways, don't produce them
7
+
3
8
on :
4
9
schedule :
5
10
- cron : ' 0 0 * * Mon'
21
26
with :
22
27
tool : mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.10
23
28
29
+ # `minimal` profile avoids downloading `rustdocs`, `clippy`, etc.
24
30
- name : Install targets, update, set default Rust
25
31
run : |
32
+ rustup profile set minimal
26
33
rustup update ${{ matrix.rust-channel }}
27
34
rustup default ${{ matrix.rust-channel }}
28
35
rustup component add rust-src
Original file line number Diff line number Diff line change @@ -6,35 +6,35 @@ OUTPUT_NAME=${1:-./output}
6
6
7
7
# Build and test the solutions
8
8
pushd exercise-solutions
9
- cargo test
9
+ cargo test --frozen
10
10
cargo test --examples
11
11
cargo fmt --check
12
12
pushd connected-mailbox
13
- cargo test
13
+ cargo test --frozen
14
14
cargo fmt --check
15
15
popd
16
16
pushd multi-threaded-mailbox
17
- cargo test
17
+ cargo test --frozen
18
18
cargo fmt --check
19
19
popd
20
20
popd
21
21
pushd qemu-code
22
22
pushd uart-driver
23
23
# Build from source because armv8r-none-eabihf isn't Tier 2
24
- RUSTC_BOOTSTRAP=1 cargo build -Zbuild-std=core
24
+ RUSTC_BOOTSTRAP=1 cargo build -Zbuild-std=core --frozen
25
25
popd
26
26
popd
27
27
pushd nrf52-code
28
28
pushd boards/dk
29
- cargo build --target=thumbv7em-none-eabihf
29
+ cargo build --target=thumbv7em-none-eabihf --release
30
30
cargo fmt --check
31
31
popd
32
32
pushd boards/dk-solution
33
- cargo build --target=thumbv7em-none-eabihf
33
+ cargo build --target=thumbv7em-none-eabihf --release
34
34
cargo fmt --check
35
35
popd
36
36
pushd boards/dongle
37
- cargo build --target=thumbv7em-none-eabihf
37
+ cargo build --target=thumbv7em-none-eabihf --release
38
38
cargo fmt --check
39
39
popd
40
40
pushd radio-app
@@ -45,7 +45,7 @@ for i in usb-lib-solutions/*; do
45
45
pushd $i
46
46
cargo build --target=thumbv7em-none-eabihf --release
47
47
cargo fmt --check
48
- cargo test
48
+ cargo test --locked
49
49
popd
50
50
done
51
51
pushd usb-lib
@@ -61,7 +61,7 @@ cargo build --target=thumbv7em-none-eabihf --release
61
61
cargo fmt --check
62
62
popd
63
63
pushd consts
64
- cargo build
64
+ cargo build --frozen
65
65
cargo fmt --check
66
66
popd
67
67
pushd puzzle-fw
@@ -74,9 +74,9 @@ cargo fmt --check
74
74
popd
75
75
popd
76
76
77
- # Only build the templates (they will panic at run-time due to the use of todo!)
77
+ # Only check the templates (they will panic at run-time due to the use of todo!)
78
78
pushd exercise-templates
79
- cargo build
79
+ cargo check --frozen
80
80
cargo fmt --check
81
81
popd
82
82
You can’t perform that action at this time.
0 commit comments