diff options
author | Darren Worrall <DazWorrall@users.noreply.github.com> | 2024-02-23 23:06:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 15:06:29 -0800 |
commit | 999781ae38f47f20e2dda962abc851e6846ad950 (patch) | |
tree | c12b04fbbb98b045043bf88d04d7a0bb6aea6a30 | |
parent | 7cb213c7d9bf545f626050c293f0bd077584e65c (diff) | |
download | binaryen-999781ae38f47f20e2dda962abc851e6846ad950.tar.gz binaryen-999781ae38f47f20e2dda962abc851e6846ad950.tar.bz2 binaryen-999781ae38f47f20e2dda962abc851e6846ad950.zip |
Build and release on aarch64 (#6334)
Fixes #6311
-rw-r--r-- | .github/workflows/create_release.yml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 7049549fc..8b5bb8ac0 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -106,6 +106,9 @@ jobs: build-alpine: name: alpine runs-on: ubuntu-latest + strategy: + matrix: + docker_platform: [amd64, arm64] steps: - uses: actions/setup-python@v1 with: @@ -113,19 +116,24 @@ jobs: - uses: actions/checkout@v1 with: submodules: true + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + if: matrix.docker_platform != 'amd64' + - name: start docker run: | - docker run -w /src -dit --name alpine -v $PWD:/src node:lts-alpine + docker run -w /src -dit --platform=linux/${{ matrix.docker_platform }} --name alpine -v $PWD:/src node:lts-alpine echo 'docker exec alpine "$@";' > ./alpine.sh chmod +x ./alpine.sh + - name: install packages run: | ./alpine.sh apk update ./alpine.sh apk add build-base cmake git python3 clang ninja py3-pip - name: install python dev dependencies - run: ./alpine.sh pip3 install -r requirements-dev.txt + run: ./alpine.sh pip3 install --break-system-packages -r requirements-dev.txt - name: cmake run: | @@ -142,7 +150,8 @@ jobs: id: archive run: | VERSION=$GITHUB_REF_NAME - PKGNAME="binaryen-$VERSION-x86_64-linux" + ARCH=$(./alpine.sh uname -m) + PKGNAME="binaryen-$VERSION-$ARCH-linux" TARBALL=$PKGNAME.tar.gz SHASUM=$PKGNAME.tar.gz.sha256 ./alpine.sh find install/ -type f -perm -u=x -exec strip {} + |