Skip to content

Commit 082683b

Browse files
authored
Merge branch 'main' into update-ubuntu
2 parents a01059c + 7351fa6 commit 082683b

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Build sample material
22

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+
38
on:
49
push:
510
pull_request:
@@ -17,8 +22,10 @@ jobs:
1722
with:
1823
tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.10
1924

25+
# `minimal` profile avoids downloading `rustdocs`, `clippy`, etc.
2026
- name: Install targets
2127
run: |
28+
rustup set profile minimal
2229
rustup target add thumbv7em-none-eabihf
2330
rustup component add rust-src
2431
rustup component add rustfmt

.github/workflows/weekly-canary-build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Weekly Canary Build
22

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+
38
on:
49
schedule:
510
- cron: '0 0 * * Mon'
@@ -21,8 +26,10 @@ jobs:
2126
with:
2227
tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12,flip-link@0.1.10
2328

29+
# `minimal` profile avoids downloading `rustdocs`, `clippy`, etc.
2430
- name: Install targets, update, set default Rust
2531
run: |
32+
rustup profile set minimal
2633
rustup update ${{ matrix.rust-channel }}
2734
rustup default ${{ matrix.rust-channel }}
2835
rustup component add rust-src

build.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,29 @@ popd
2121
pushd qemu-code
2222
pushd uart-driver
2323
# 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
2525
popd
2626
popd
2727
pushd nrf52-code
2828
pushd boards/dk
29-
cargo build --target=thumbv7em-none-eabihf --locked
29+
cargo build --target=thumbv7em-none-eabihf --locked --release
3030
cargo fmt --check
3131
popd
3232
pushd boards/dk-solution
33-
cargo build --target=thumbv7em-none-eabihf --locked
33+
cargo build --target=thumbv7em-none-eabihf --locked --release
3434
cargo fmt --check
3535
popd
3636
pushd boards/dongle
37-
cargo build --target=thumbv7em-none-eabihf --locked
37+
cargo build --target=thumbv7em-none-eabihf --locked --release
3838
cargo fmt --check
3939
popd
4040
pushd radio-app
41-
cargo build --target=thumbv7em-none-eabihf --release --locked
41+
cargo build --target=thumbv7em-none-eabihf --locked --release
4242
cargo fmt --check
4343
popd
4444
for i in usb-lib-solutions/*; do
4545
pushd $i
46-
cargo build --target=thumbv7em-none-eabihf --release --locked
46+
cargo build --target=thumbv7em-none-eabihf --locked --release
4747
cargo fmt --check
4848
cargo test --locked
4949
popd

0 commit comments

Comments
 (0)