Skip to content

Commit 9fb3749

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

File tree

31 files changed

+413
-136
lines changed

31 files changed

+413
-136
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,30 +79,30 @@ jobs:
7979
matrix:
8080
include:
8181
- platform: linux
82-
runner: depot-ubuntu-24.04-4
82+
runner: depot-ubuntu-24.04-8
8383
target: x86_64-unknown-linux-musl
8484
binary_ext: ""
8585
arch: x86_64
8686
# TODO: Add back when working
8787
# - platform: linux
88-
# runner: depot-ubuntu-24.04-arm-4
88+
# runner: depot-ubuntu-24.04-arm-8
8989
# target: aarch64-unknown-linux-musl
9090
# binary_ext: ""
9191
# arch: aarch64
9292
- platform: windows
93-
runner: depot-ubuntu-24.04-4
93+
runner: depot-ubuntu-24.04-8
9494
target: x86_64-pc-windows-gnu
9595
binary_ext: ".exe"
9696
arch: x86_64
9797
- platform: macos
9898
# Use Linux instead of macOS builders since macOS does not support Docker
99-
runner: depot-ubuntu-24.04-4
99+
runner: depot-ubuntu-24.04-8
100100
target: x86_64-apple-darwin
101101
binary_ext: ""
102102
arch: x86_64
103103
- platform: macos
104104
# Use Linux instead of macOS builders since macOS does not support Docker
105-
runner: depot-ubuntu-24.04-4
105+
runner: depot-ubuntu-24.04-8
106106
target: aarch64-apple-darwin
107107
binary_ext: ""
108108
arch: aarch64
@@ -162,10 +162,10 @@ jobs:
162162
matrix:
163163
include:
164164
- platform: linux/arm64
165-
runner: depot-ubuntu-24.04-arm-4
165+
runner: depot-ubuntu-24.04-arm-8
166166
arch_suffix: -arm64
167167
- platform: linux/x86_64
168-
runner: depot-ubuntu-24.04-4
168+
runner: depot-ubuntu-24.04-8
169169
arch_suffix: -amd64
170170
runs-on: ${{ matrix.runner }}
171171
steps:
@@ -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: 28 additions & 21 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

@@ -43,23 +38,26 @@ jobs:
4338

4439
# clippy:
4540
# name: Clippy
46-
# runs-on: depot-ubuntu-24.04
41+
# runs-on: depot-ubuntu-24.04-8
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

6058
check:
6159
name: Check
62-
runs-on: depot-ubuntu-24.04
60+
runs-on: depot-ubuntu-24.04-8
6361
steps:
6462
- uses: actions/checkout@v4
6563

@@ -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
@@ -77,7 +78,7 @@ jobs:
7778

7879
# test:
7980
# name: Test
80-
# runs-on: depot-ubuntu-24.04
81+
# runs-on: depot-ubuntu-24.04-8
8182
# steps:
8283
# - uses: actions/checkout@v4
8384
#
@@ -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)