Skip to content

Commit 84477c6

Browse files
authored
chore: release for latest cargo updates (#10168)
* update release for new cargo update * Use Linux-22.04
1 parent 4ce3438 commit 84477c6

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
- uses: Swatinem/rust-cache@v2
3030
with:
3131
cache-on-failure: true
32-
- name: Install cross main
32+
- name: Install cross
3333
id: cross_main
3434
run: |
35-
cargo install cross --git https://github.com/cross-rs/cross
35+
cargo install cross
3636
# Login against a Docker registry except on PR
3737
# https://github.com/docker/login-action
3838
- name: Login into registry ${{ env.REGISTRY }}

.github/workflows/release.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,22 @@ jobs:
8989
# `target`: Rust build target triple
9090
# `platform` and `arch`: Used in tarball names
9191
# `svm`: target platform to use for the Solc binary: https://github.com/roynalnaruto/svm-rs/blob/84cbe0ac705becabdc13168bae28a45ad2299749/svm-builds/build.rs#L4-L24
92-
- runner: Linux-20.04
92+
- runner: Linux-22.04
9393
target: x86_64-unknown-linux-gnu
9494
svm_target_platform: linux-amd64
9595
platform: linux
9696
arch: amd64
97-
- runner: Linux-20.04
97+
- runner: Linux-22.04
9898
target: x86_64-unknown-linux-musl
9999
svm_target_platform: linux-amd64
100100
platform: alpine
101101
arch: amd64
102-
- runner: Linux-20.04
102+
- runner: Linux-22.04
103103
target: aarch64-unknown-linux-gnu
104104
svm_target_platform: linux-aarch64
105105
platform: linux
106106
arch: arm64
107-
- runner: Linux-20.04
107+
- runner: Linux-22.04
108108
target: aarch64-unknown-linux-musl
109109
svm_target_platform: linux-aarch64
110110
platform: alpine
@@ -142,15 +142,8 @@ jobs:
142142
echo "SDKROOT=$(xcrun -sdk macosx --show-sdk-path)" >> $GITHUB_ENV
143143
echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV
144144
145-
- name: Linux ARM setup
146-
if: matrix.target == 'aarch64-unknown-linux-gnu'
147-
run: |
148-
sudo apt-get update -y
149-
sudo apt-get install -y gcc-aarch64-linux-gnu
150-
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
151-
152-
- name: MUSL setup
153-
if: matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl'
145+
- name: cross setup
146+
if: matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-musl' || matrix.target == 'aarch64-unknown-linux-gnu'
154147
run: |
155148
cargo install cross
156149
@@ -174,7 +167,7 @@ jobs:
174167
175168
[[ "$TARGET" == *windows* ]] && ext=".exe"
176169
177-
if [[ "$TARGET" == *-musl ]]; then
170+
if [[ "$TARGET" == *-musl || "$TARGET" == "aarch64-unknown-linux-gnu" ]]; then
178171
cross build "${flags[@]}"
179172
else
180173
cargo build "${flags[@]}"

0 commit comments

Comments
 (0)