Skip to content

Commit e5b6395

Browse files
committed
Pass platform properly.
1 parent 5d02a44 commit e5b6395

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
--platform linux/${{ matrix.arch }} \
6262
--privileged \
6363
--name tmp \
64+
-e TARGETPLATFORM="linux/${{ matrix.arch }}" \
6465
metacall/distributable_linux /metacall/scripts/deps.sh
6566
docker commit tmp metacall/distributable_linux
6667
docker rm -f tmp

scripts/deps.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ git checkout e0951349603581895e0ba61f0e7410368ea1902a # Fix nonguix version
3232
apk del git-deps
3333

3434
# Build (i386 workaround for NodeJS)
35-
architecture=$(uname -m)
36-
37-
if [[ "$architecture" == "i386" || "$architecture" == "i686" ]]; then
35+
if [[ "${TARGETPLATFORM:-}" == "linux/386" ]]; then
3836
guix install --fallback --without-tests=node node-lts
3937
guix install --fallback --without-tests=node-lts libnode
4038
fi

0 commit comments

Comments
 (0)