fix(ci): change linux-aarch64 to compile to aarch64 file (#909)
- change linux-aarch64 to aarch64 container - add qemu for architecture emulation
This commit is contained in:
parent
66dc948647
commit
71c9a7911b
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
@ -52,16 +52,18 @@ jobs:
|
||||
matrix:
|
||||
feature: [lua51, luajit]
|
||||
config:
|
||||
- os: ubuntu-latest
|
||||
os_name: linux
|
||||
arch: aarch64
|
||||
rust_target: aarch64-unknown-linux-gnu
|
||||
docker_platform: linux/aarch64
|
||||
container: quay.io/pypa/manylinux2014_aarch64
|
||||
- os: ubuntu-latest
|
||||
os_name: linux
|
||||
arch: x86_64
|
||||
rust_target: x86_64-unknown-linux-gnu
|
||||
docker_platform: linux/amd64
|
||||
container: quay.io/pypa/manylinux2014_x86_64 # for glibc 2.17
|
||||
- os: ubuntu-latest
|
||||
os_name: linux
|
||||
arch: aarch64
|
||||
rust_target: aarch64-unknown-linux-gnu
|
||||
- os: macos-13
|
||||
os_name: darwin
|
||||
arch: x86_64
|
||||
@ -84,6 +86,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
|
||||
|
||||
# Step 1: Set up QEMU for multi-architecture support
|
||||
- name: Set up QEMU
|
||||
if: ${{ matrix.config.docker_platform == 'linux/aarch64' }}
|
||||
uses: docker/setup-qemu-action@v2
|
||||
with:
|
||||
platforms: all
|
||||
|
||||
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # ratchet:Swatinem/rust-cache@v2
|
||||
if: ${{ matrix.config.container == null }}
|
||||
- uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # ratchet:dtolnay/rust-toolchain@master
|
||||
|
Loading…
x
Reference in New Issue
Block a user