aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-02-12 00:26:30 +0100
committerDario Nieuwenhuis <[email protected]>2022-02-12 01:16:31 +0100
commit1904906b363d2bbe32e95546f53201a3179dcb60 (patch)
tree2ca42aae1ecd8e52db225cf6b146697671da46c4 /.github/workflows
parent20e14b8edbbf067ab683ffdb170938838d9167b3 (diff)
ci: add build with stable.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/rust.yml26
1 files changed, 24 insertions, 2 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 767e42243..f1256320d 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -12,11 +12,11 @@ env:
12jobs: 12jobs:
13 all: 13 all:
14 runs-on: ubuntu-20.04 14 runs-on: ubuntu-20.04
15 needs: [build, test] 15 needs: [build-nightly, build-stable, test]
16 steps: 16 steps:
17 - name: Done 17 - name: Done
18 run: exit 0 18 run: exit 0
19 build: 19 build-nightly:
20 runs-on: ubuntu-latest 20 runs-on: ubuntu-latest
21 permissions: 21 permissions:
22 id-token: write 22 id-token: write
@@ -41,6 +41,28 @@ jobs:
41 chmod +x /usr/local/bin/cargo-batch 41 chmod +x /usr/local/bin/cargo-batch
42 ./ci.sh 42 ./ci.sh
43 rm -rf target_ci/*{,/release}/{build,deps,.fingerprint}/{lib,}{embassy,stm32}* 43 rm -rf target_ci/*{,/release}/{build,deps,.fingerprint}/{lib,}{embassy,stm32}*
44 build-stable:
45 runs-on: ubuntu-latest
46 steps:
47 - uses: actions/checkout@v2
48 with:
49 submodules: true
50 - name: Cache multiple paths
51 uses: actions/cache@v2
52 with:
53 path: |
54 ~/.cargo/bin/
55 ~/.cargo/registry/index/
56 ~/.cargo/registry/cache/
57 ~/.cargo/git/db/
58 target_ci_stable
59 key: rust-stable-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}
60 - name: build
61 run: |
62 curl -L -o /usr/local/bin/cargo-batch https://github.com/embassy-rs/cargo-batch/releases/download/batch-0.1.0/cargo-batch
63 chmod +x /usr/local/bin/cargo-batch
64 ./ci_stable.sh
65 rm -rf target_ci_stable/*{,/release}/{build,deps,.fingerprint}/{lib,}{embassy,stm32}*
44 66
45 test: 67 test:
46 runs-on: ubuntu-latest 68 runs-on: ubuntu-latest