aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorQuentin Smith <[email protected]>2023-07-17 21:31:43 -0400
committerQuentin Smith <[email protected]>2023-07-17 21:31:43 -0400
commit6f02403184eb7fb7990fb88fc9df9c4328a690a3 (patch)
tree748f510e190bb2724750507a6e69ed1a8e08cb20 /.github/workflows/rust.yml
parentd896f80405aa8963877049ed999e4aba25d6e2bb (diff)
parent6b5df4523aa1c4902f02e803450ae4b418e0e3ca (diff)
Merge remote-tracking branch 'origin/main' into nrf-pdm
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml72
1 files changed, 0 insertions, 72 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
deleted file mode 100644
index d2e8e316b..000000000
--- a/.github/workflows/rust.yml
+++ /dev/null
@@ -1,72 +0,0 @@
1name: Rust
2
3on:
4 push:
5 branches: [staging, trying, master]
6 pull_request:
7 branches: [master]
8
9env:
10 CARGO_TERM_COLOR: always
11
12jobs:
13 all:
14 runs-on: ubuntu-20.04
15 needs: [build-nightly, build-stable, test]
16 steps:
17 - name: Done
18 run: exit 0
19 build-nightly:
20 runs-on: ubuntu-latest
21 permissions:
22 id-token: write
23 contents: read
24 steps:
25 - uses: actions/checkout@v2
26 with:
27 submodules: true
28 - name: Cache multiple paths
29 uses: actions/cache@v2
30 with:
31 path: |
32 ~/.cargo/bin/
33 ~/.cargo/registry/index/
34 ~/.cargo/registry/cache/
35 ~/.cargo/git/db/
36 target_ci
37 key: rust3-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}
38 - name: build
39 run: |
40 curl -L -o /usr/local/bin/cargo-batch https://github.com/embassy-rs/cargo-batch/releases/download/batch-0.3.0/cargo-batch
41 chmod +x /usr/local/bin/cargo-batch
42 ./ci.sh
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.3.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}*
66
67 test:
68 runs-on: ubuntu-latest
69 steps:
70 - uses: actions/checkout@v2
71 - name: Test
72 run: cd embassy-sync && cargo test