Skip to content

Commit b6bd3d3

Browse files
committed
* PR fixes
1 parent b1d062c commit b6bd3d3

File tree

3 files changed

+28
-113
lines changed

3 files changed

+28
-113
lines changed

.github/scripts/free_disk_space.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/check-backend-on-pr.yml renamed to .github/workflows/backend-ci.yml

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ on:
1616
branches:
1717
- develop
1818

19-
# Ensures only one build is run per branch, unless pushing to develop
19+
# Ensures only one build is run per branch
2020
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/develop' && github.run_number || github.ref }}
21+
group: ${{ github.workflow }}-${{ github.ref }}
2222
cancel-in-progress: true
2323

2424
env:
25-
CARGO_ARGS: ${{ github.ref == 'refs/heads/develop' && '--release' || '' }}
2625
CARGO_TERM_COLOR: always
2726
SKIP_WASM_BUILD: 1
2827
RUST_NIGHTLY_VERSION: 2024-11-19
@@ -57,19 +56,11 @@ jobs:
5756
continue-on-error: false
5857
steps:
5958
- uses: actions/checkout@v4
60-
- run: ./../.github/scripts/free_disk_space.sh
6159
- run: sudo apt-get install -y protobuf-compiler
62-
- uses: actions/cache@v4
60+
- uses: Swatinem/rust-cache@v2
6361
with:
64-
path: |
65-
~/.cargo/bin/
66-
~/.cargo/registry/index/
67-
~/.cargo/registry/cache/
68-
~/.cargo/git/db/
69-
target/
70-
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
71-
restore-keys: ${{ runner.os }}-cargo-lint-
72-
- run: cargo clippy --all-features --all-targets ${{ env.CARGO_ARGS }} -- -D warnings
62+
shared-key: "cache-clippy"
63+
- run: cargo clippy --all-features --all-target-- -D warnings
7364

7465
test:
7566
if: ${{ !startsWith(github.head_ref, 'release/') }}
@@ -78,19 +69,11 @@ jobs:
7869
continue-on-error: false
7970
steps:
8071
- uses: actions/checkout@v4
81-
- run: ./../.github/scripts/free_disk_space.sh
8272
- run: sudo apt-get install -y protobuf-compiler
83-
- uses: actions/cache@v4
73+
- uses: Swatinem/rust-cache@v2
8474
with:
85-
path: |
86-
~/.cargo/bin/
87-
~/.cargo/registry/index/
88-
~/.cargo/registry/cache/
89-
~/.cargo/git/db/
90-
target/
91-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
92-
restore-keys: ${{ runner.os }}-cargo-test-
93-
- run: cargo test --all-features --all-targets ${{ env.CARGO_ARGS }}
75+
shared-key: "cache-test"
76+
- run: cargo test --all-features --all-targets
9477

9578
check-wasm:
9679
if: ${{ !startsWith(github.head_ref, 'release/') }}
@@ -99,16 +82,26 @@ jobs:
9982
continue-on-error: false
10083
steps:
10184
- uses: actions/checkout@v4
102-
- run: ./../.github/scripts/free_disk_space.sh
10385
- run: sudo apt-get install -y protobuf-compiler
104-
- uses: actions/cache@v4
86+
- uses: Swatinem/rust-cache@v2
10587
with:
106-
path: |
107-
~/backend/.cargo/bin/
108-
~/backend/.cargo/registry/index/
109-
~/backend/.cargo/registry/cache/
110-
~/backend/.cargo/git/db/
111-
~/backend/target/
112-
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
113-
restore-keys: ${{ runner.os }}-cargo-lint-
88+
shared-key: "cache-check-wasm"
11489
- run: ./scripts/run_for_all_no_std_crates.sh check --no-default-features --target=wasm32-unknown-unknown
90+
91+
check-features:
92+
if: ${{ !startsWith(github.head_ref, 'release/') }}
93+
name: Check feature propagation
94+
runs-on: ubuntu-latest
95+
continue-on-error: false
96+
steps:
97+
- uses: actions/checkout@v4
98+
- run: sudo apt-get install -y protobuf-compiler
99+
- name: Install toolchain
100+
uses: dtolnay/rust-toolchain@master
101+
with:
102+
toolchain: "stable"
103+
- name: Install Zepter
104+
run: cargo install zepter -f --locked
105+
- run: zepter --version
106+
- name: Run Zepter checks
107+
run: zepter run check

.github/workflows/cleanup-cache.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)