diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/rust.yml | 26 |
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: | |||
| 12 | jobs: | 12 | jobs: |
| 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 |
