diff options
-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 {} + |