File tree 3 files changed +22
-7
lines changed
3 files changed +22
-7
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 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 --locked
25
25
popd
26
26
popd
27
27
pushd nrf52-code
28
28
pushd boards/dk
29
- cargo build --target=thumbv7em-none-eabihf --locked
29
+ cargo build --target=thumbv7em-none-eabihf --locked --release
30
30
cargo fmt --check
31
31
popd
32
32
pushd boards/dk-solution
33
- cargo build --target=thumbv7em-none-eabihf --locked
33
+ cargo build --target=thumbv7em-none-eabihf --locked --release
34
34
cargo fmt --check
35
35
popd
36
36
pushd boards/dongle
37
- cargo build --target=thumbv7em-none-eabihf --locked
37
+ cargo build --target=thumbv7em-none-eabihf --locked --release
38
38
cargo fmt --check
39
39
popd
40
40
pushd radio-app
41
- cargo build --target=thumbv7em-none-eabihf --release --locked
41
+ cargo build --target=thumbv7em-none-eabihf --locked --release
42
42
cargo fmt --check
43
43
popd
44
44
for i in usb-lib-solutions/* ; do
45
45
pushd $i
46
- cargo build --target=thumbv7em-none-eabihf --release --locked
46
+ cargo build --target=thumbv7em-none-eabihf --locked --release
47
47
cargo fmt --check
48
48
cargo test --locked
49
49
popd
You can’t perform that action at this time.
0 commit comments