Skip to content

Commit 740036c

Browse files
committed
chore: fix remaining warnings for all targets
1 parent f7c6da0 commit 740036c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+431
-130
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: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ defaults:
1414
# Enable fail-fast behavior
1515
shell: bash -e {0}
1616
env:
17-
# Disable incremental compilation for faster from-scratch builds
18-
CARGO_INCREMENTAL: 0
1917
RUSTFLAGS: "--cfg tokio_unstable"
2018
CARGO_TERM_COLOR: always
2119
jobs:
@@ -34,8 +32,8 @@ jobs:
3432
- '**/*.rs'
3533
- '**/Cargo.toml'
3634
- '**/Cargo.lock'
37-
- '.github/workflows/rust-ci.yml'
38-
35+
- '.github/workflows/rust.yml'
36+
3937
fmt:
4038
name: Rustfmt
4139
runs-on: ubuntu-latest
@@ -49,28 +47,31 @@ jobs:
4947
components: rustfmt
5048
- name: Check formatting
5149
run: cargo fmt --all -- --check
52-
50+
5351
# clippy:
5452
# name: Clippy
55-
# runs-on: depot-ubuntu-24.04
53+
# runs-on: depot-ubuntu-24.04-8
5654
# needs: changes
5755
# if: needs.changes.outputs.rust == 'true'
5856
# steps:
5957
# - uses: actions/checkout@v4
60-
#
58+
#
6159
# - uses: actions-rust-lang/setup-rust-toolchain@v1
6260
# with:
6361
# toolchain: stable
6462
# components: clippy
65-
#
63+
#
6664
# - uses: Swatinem/rust-cache@v2
67-
#
65+
# with:
66+
# shared-key: "rust-ci"
67+
# cache-on-failure: true
68+
#
6869
# - name: Run clippy
6970
# run: cargo clippy --all-targets --all-features -- -W warnings
70-
71+
7172
check:
7273
name: Check
73-
runs-on: depot-ubuntu-24.04
74+
runs-on: depot-ubuntu-24.04-8
7475
needs: changes
7576
if: needs.changes.outputs.rust == 'true'
7677
steps:
@@ -79,15 +80,19 @@ jobs:
7980
with:
8081
toolchain: stable
8182
- uses: Swatinem/rust-cache@v2
83+
with:
84+
shared-key: "rust-ci"
85+
cache-on-failure: true
86+
8287
- name: Check
8388
run: cargo check --all-targets --all-features
8489
env:
8590
# Deny warnings
8691
RUSTFLAGS: --cfg tokio_unstable -D warnings
87-
92+
8893
# test:
8994
# name: Test
90-
# runs-on: depot-ubuntu-24.04
95+
# runs-on: depot-ubuntu-24.04-8
9196
# needs: changes
9297
# if: needs.changes.outputs.rust == 'true'
9398
# steps:
@@ -98,6 +103,12 @@ jobs:
98103
# toolchain: stable
99104
#
100105
# - uses: Swatinem/rust-cache@v2
106+
# with:
107+
# # Share cache across all Rust jobs
108+
# shared-key: "rust-ci"
109+
# # Save cache even if the build fails
110+
# cache-on-failure: true
111+
# # Only save cache on main branch to avoid cache pollution from PRs
101112
#
102113
# - name: Run tests
103114
# run: cargo test --verbose
@@ -128,11 +139,11 @@ jobs:
128139
echo "No Rust changes detected, skipping checks"
129140
exit 0
130141
fi
131-
142+
132143
# If rust code changed, verify all jobs passed
133144
if [ "${{ needs.fmt.result }}" == "failure" ] || [ "${{ needs.check.result }}" == "failure" ]; then
134145
echo "One or more required jobs failed"
135146
exit 1
136147
fi
137-
148+
138149
echo "All Rust checks passed"

0 commit comments

Comments
 (0)