aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-11-24 01:43:53 +0100
committerDario Nieuwenhuis <[email protected]>2021-11-24 01:43:53 +0100
commitf9934fb56b5afdcf18df28aa8290c8d048886c2b (patch)
tree2b23af6a45dcd05d79d48a554b2bae75d4519a64
parente187f50f4b6b00c7afe91026b0c14282eeb4a975 (diff)
ci: do main build with fully generated stm32-metapac.
-rw-r--r--.github/workflows/rust.yml11
-rwxr-xr-xci.sh7
2 files changed, 8 insertions, 10 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 055089bd9..7904c3856 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -12,7 +12,7 @@ env:
12jobs: 12jobs:
13 all: 13 all:
14 runs-on: ubuntu-20.04 14 runs-on: ubuntu-20.04
15 needs: [build, test, metapac_gen] 15 needs: [build, test]
16 steps: 16 steps:
17 - name: Done 17 - name: Done
18 run: exit 0 18 run: exit 0
@@ -45,12 +45,3 @@ jobs:
45 - uses: actions/checkout@v2 45 - uses: actions/checkout@v2
46 - name: Test 46 - name: Test
47 run: cd embassy && cargo test 47 run: cd embassy && cargo test
48
49 metapac_gen:
50 runs-on: ubuntu-latest
51 steps:
52 - uses: actions/checkout@v2
53 with:
54 submodules: true
55 - name: Generate pregenerated metapac
56 run: cd stm32-metapac-gen; cargo run --release
diff --git a/ci.sh b/ci.sh
index a3b7d804f..8c6c2eebe 100755
--- a/ci.sh
+++ b/ci.sh
@@ -7,6 +7,13 @@ export RUSTFLAGS=-Dwarnings
7 7
8find -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018 8find -name '*.rs' -not -path '*target*' -not -path '*stm32-metapac-gen/out/*' | xargs rustfmt --check --skip-children --unstable-features --edition 2018
9 9
10# Generate stm32-metapac
11# for some reason Cargo stomps the cache if we don't specify --target.
12# This happens with vanilla Cargo, not just cargo-batch. Bug?
13(cd stm32-metapac-gen; cargo run --release --target x86_64-unknown-linux-gnu)
14rm -rf stm32-metapac
15mv stm32-metapac-gen/out stm32-metapac
16
10cargo batch \ 17cargo batch \
11 --- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi \ 18 --- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi \
12 --- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi --features log,executor-agnostic \ 19 --- build --release --manifest-path embassy/Cargo.toml --target thumbv7em-none-eabi --features log,executor-agnostic \