Skip to content

Commit 109b906

Browse files
committed
set docker platform for cross-arch builds
1 parent cb51312 commit 109b906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
else
101101
ENTRYPOINT=
102102
fi
103-
docker run -e CXXFLAGS -v $(pwd):/gha ${{ matrix.platform }}/alpine:edge ${ENTRYPOINT} sh -ec "cd /gha && sh ./build.sh"
103+
docker run --platform ${{ matrix.platform }} -e CXXFLAGS -v $(pwd):/gha ${{ matrix.platform }}/alpine:edge ${ENTRYPOINT} sh -ec "cd /gha && sh ./build.sh"
104104
- name: Check binaries
105105
run: |
106106
cat <<EOF > check.sh
@@ -109,7 +109,7 @@ jobs:
109109
tar -xf ./dist/patchelf-*-*.tar.gz
110110
./bin/patchelf --version
111111
EOF
112-
docker run -v $(pwd):/gha ${{ matrix.platform }}/debian:unstable-slim sh -ec "cd /gha && sh ./check.sh"
112+
docker run --platform ${{ matrix.platform }} -v $(pwd):/gha ${{ matrix.platform }}/debian:unstable-slim sh -ec "cd /gha && sh ./check.sh"
113113
- uses: actions/upload-artifact@v3
114114
with:
115115
name: patchelf

0 commit comments

Comments
 (0)