File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -106,26 +106,34 @@ jobs:
106
106
build-alpine :
107
107
name : alpine
108
108
runs-on : ubuntu-latest
109
+ strategy :
110
+ matrix :
111
+ docker_platform : [amd64, arm64]
109
112
steps :
110
113
- uses : actions/setup-python@v1
111
114
with :
112
115
python-version : ' 3.x'
113
116
- uses : actions/checkout@v1
114
117
with :
115
118
submodules : true
119
+ - name : Set up QEMU
120
+ uses : docker/setup-qemu-action@v3
121
+ if : matrix.docker_platform != 'amd64'
122
+
116
123
- name : start docker
117
124
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
119
126
echo 'docker exec alpine "$@";' > ./alpine.sh
120
127
chmod +x ./alpine.sh
121
128
129
+
122
130
- name : install packages
123
131
run : |
124
132
./alpine.sh apk update
125
133
./alpine.sh apk add build-base cmake git python3 clang ninja py3-pip
126
134
127
135
- 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
129
137
130
138
- name : cmake
131
139
run : |
@@ -142,7 +150,8 @@ jobs:
142
150
id : archive
143
151
run : |
144
152
VERSION=$GITHUB_REF_NAME
145
- PKGNAME="binaryen-$VERSION-x86_64-linux"
153
+ ARCH=$(./alpine.sh uname -m)
154
+ PKGNAME="binaryen-$VERSION-$ARCH-linux"
146
155
TARBALL=$PKGNAME.tar.gz
147
156
SHASUM=$PKGNAME.tar.gz.sha256
148
157
./alpine.sh find install/ -type f -perm -u=x -exec strip {} +
You can’t perform that action at this time.
0 commit comments