Skip to content

Commit 999781a

Browse files
authored
Build and release on aarch64 (#6334)
Fixes #6311
1 parent 7cb213c commit 999781a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/create_release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,34 @@ jobs:
106106
build-alpine:
107107
name: alpine
108108
runs-on: ubuntu-latest
109+
strategy:
110+
matrix:
111+
docker_platform: [amd64, arm64]
109112
steps:
110113
- uses: actions/setup-python@v1
111114
with:
112115
python-version: '3.x'
113116
- uses: actions/checkout@v1
114117
with:
115118
submodules: true
119+
- name: Set up QEMU
120+
uses: docker/setup-qemu-action@v3
121+
if: matrix.docker_platform != 'amd64'
122+
116123
- name: start docker
117124
run: |
118-
docker run -w /src -dit --name alpine -v $PWD:/src node:lts-alpine
125+
docker run -w /src -dit --platform=linux/${{ matrix.docker_platform }} --name alpine -v $PWD:/src node:lts-alpine
119126
echo 'docker exec alpine "$@";' > ./alpine.sh
120127
chmod +x ./alpine.sh
121128
129+
122130
- name: install packages
123131
run: |
124132
./alpine.sh apk update
125133
./alpine.sh apk add build-base cmake git python3 clang ninja py3-pip
126134
127135
- name: install python dev dependencies
128-
run: ./alpine.sh pip3 install -r requirements-dev.txt
136+
run: ./alpine.sh pip3 install --break-system-packages -r requirements-dev.txt
129137

130138
- name: cmake
131139
run: |
@@ -142,7 +150,8 @@ jobs:
142150
id: archive
143151
run: |
144152
VERSION=$GITHUB_REF_NAME
145-
PKGNAME="binaryen-$VERSION-x86_64-linux"
153+
ARCH=$(./alpine.sh uname -m)
154+
PKGNAME="binaryen-$VERSION-$ARCH-linux"
146155
TARBALL=$PKGNAME.tar.gz
147156
SHASUM=$PKGNAME.tar.gz.sha256
148157
./alpine.sh find install/ -type f -perm -u=x -exec strip {} +

0 commit comments

Comments
 (0)