Skip to content

Commit 8ca7764

Browse files
committed
chore: fix remaining warnings for all targets
1 parent 222dae8 commit 8ca7764

File tree

31 files changed

+403
-126
lines changed

31 files changed

+403
-126
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
github_token: ${{ secrets.GITHUB_TOKEN}}
189189

190190
- name: Build & Push (rivetkit/engine:full)
191-
uses: docker/build-push-action@v4
191+
uses: depot/build-push-action@v1
192192
with:
193193
context: .
194194
push: true
@@ -205,7 +205,7 @@ jobs:
205205
# netrc=${{ runner.temp }}/netrc
206206

207207
- name: Build & Push (rivetkit/engine:slim)
208-
uses: docker/build-push-action@v4
208+
uses: depot/build-push-action@v1
209209
with:
210210
context: .
211211
push: true

.github/workflows/rust.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,22 @@ name: Rust CI
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- 'frontend/**'
5+
paths:
6+
- '**/*.rs'
7+
- '**/Cargo.toml'
8+
- '**/Cargo.lock'
9+
- '.github/workflows/rust.yml'
710
push:
811
branches:
912
- main
10-
11-
concurrency:
12-
group: rust-${{ github.ref }}
13-
cancel-in-progress: true
14-
15-
permissions:
16-
contents: read
17-
18-
defaults:
19-
run:
20-
# Enable fail-fast behavior
21-
shell: bash -e {0}
13+
paths:
14+
- '**/*.rs'
15+
- '**/Cargo.toml'
16+
- '**/Cargo.lock'
17+
- '.github/workflows/rust.yml'
2218

2319
env:
2420
# Disable incremental compilation for faster from-scratch builds
25-
CARGO_INCREMENTAL: 0
2621
RUSTFLAGS: "--cfg tokio_unstable"
2722
CARGO_TERM_COLOR: always
2823

@@ -46,14 +41,17 @@ jobs:
4641
# runs-on: depot-ubuntu-24.04
4742
# steps:
4843
# - uses: actions/checkout@v4
49-
44+
5045
# - uses: actions-rust-lang/setup-rust-toolchain@v1
5146
# with:
5247
# toolchain: stable
5348
# components: clippy
54-
49+
5550
# - uses: Swatinem/rust-cache@v2
56-
51+
# with:
52+
# shared-key: "rust-ci"
53+
# cache-on-failure: true
54+
5755
# - name: Run clippy
5856
# run: cargo clippy --all-targets --all-features -- -W warnings
5957

@@ -68,6 +66,9 @@ jobs:
6866
toolchain: stable
6967

7068
- uses: Swatinem/rust-cache@v2
69+
with:
70+
shared-key: "rust-ci"
71+
cache-on-failure: true
7172

7273
- name: Check
7374
run: cargo check --all-targets --all-features
@@ -86,6 +87,12 @@ jobs:
8687
# toolchain: stable
8788
#
8889
# - uses: Swatinem/rust-cache@v2
90+
# with:
91+
# # Share cache across all Rust jobs
92+
# shared-key: "rust-ci"
93+
# # Save cache even if the build fails
94+
# cache-on-failure: true
95+
# # Only save cache on main branch to avoid cache pollution from PRs
8996
#
9097
# - name: Run tests
9198
# run: cargo test --verbose

0 commit comments

Comments
 (0)