Skip to content

Commit

Permalink
fix(ci): change linux-aarch64 to compile to aarch64 file (#909)
Browse files Browse the repository at this point in the history
- change linux-aarch64 to aarch64 container
- add qemu for architecture emulation
  • Loading branch information
Moerliy authored Nov 29, 2024
1 parent 66dc948 commit 71c9a79
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 71c9a79

Please sign in to comment.