fix: use native ARM64 runner instead of cross-compilation
Some checks failed
Release / Build Release (x86_64-unknown-linux-gnu) (push) Failing after 2s
Release / Build Release (aarch64-unknown-linux-gnu) (push) Has been cancelled
Release / Build Release (aarch64-apple-darwin) (push) Has been cancelled
Release / Build Release (x86_64-apple-darwin) (push) Has been cancelled
Release / Build Release (x86_64-pc-windows-msvc) (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
Release / Publish to crates.io (push) Has been cancelled
Some checks failed
Release / Build Release (x86_64-unknown-linux-gnu) (push) Failing after 2s
Release / Build Release (aarch64-unknown-linux-gnu) (push) Has been cancelled
Release / Build Release (aarch64-apple-darwin) (push) Has been cancelled
Release / Build Release (x86_64-apple-darwin) (push) Has been cancelled
Release / Build Release (x86_64-pc-windows-msvc) (push) Has been cancelled
Release / Create GitHub Release (push) Has been cancelled
Release / Publish to crates.io (push) Has been cancelled
- Use ubuntu-24.04-arm runner for native ARM64 builds - Remove cross-compilation setup (OpenSSL issues in Docker) - Native builds are more reliable and faster
This commit is contained in:
parent
b141158868
commit
01ff14c0a9
1 changed files with 4 additions and 15 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
|
@ -24,11 +24,10 @@ jobs:
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
artifact-name: synor-linux-x86_64
|
artifact-name: synor-linux-x86_64
|
||||||
archive-ext: tar.gz
|
archive-ext: tar.gz
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-24.04-arm
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
artifact-name: synor-linux-aarch64
|
artifact-name: synor-linux-aarch64
|
||||||
archive-ext: tar.gz
|
archive-ext: tar.gz
|
||||||
cross: true
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
artifact-name: synor-macos-x86_64
|
artifact-name: synor-macos-x86_64
|
||||||
|
|
@ -53,12 +52,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Install cross tool
|
|
||||||
if: matrix.cross
|
|
||||||
run: cargo install cross --git https://github.com/cross-rs/cross
|
|
||||||
|
|
||||||
- name: Install system dependencies (Linux)
|
- name: Install system dependencies (Linux)
|
||||||
if: runner.os == 'Linux' && !matrix.cross
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libclang-dev llvm-dev
|
sudo apt-get install -y libclang-dev llvm-dev
|
||||||
|
|
@ -83,14 +78,8 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.target }}-cargo-target-release-
|
${{ runner.os }}-${{ matrix.target }}-cargo-target-release-
|
||||||
|
|
||||||
- name: Build release binaries (Unix with cross)
|
- name: Build release binaries (Unix)
|
||||||
if: runner.os != 'Windows' && matrix.cross
|
if: runner.os != 'Windows'
|
||||||
env:
|
|
||||||
TARGET: ${{ matrix.target }}
|
|
||||||
run: cross build --release --workspace --target "$TARGET"
|
|
||||||
|
|
||||||
- name: Build release binaries (Unix native)
|
|
||||||
if: runner.os != 'Windows' && !matrix.cross
|
|
||||||
env:
|
env:
|
||||||
TARGET: ${{ matrix.target }}
|
TARGET: ${{ matrix.target }}
|
||||||
run: cargo build --release --workspace --target "$TARGET"
|
run: cargo build --release --workspace --target "$TARGET"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue