Skip to content

Commit aa8cc1c

Browse files
committed
derive Linux tar suffix based on uname -m
Signed-off-by: Joel Dice <[email protected]>
1 parent 946b725 commit aa8cc1c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: sudo apt install ccache ninja-build
6161
if: matrix.os == 'ubuntu-latest'
6262
- name: Build
63-
run: NINJA_FLAGS=-v make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON DEB_ARCH=amd64 TAR_MACHINE=linux-amd64
63+
run: NINJA_FLAGS=-v make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
6464
shell: bash
6565
- name: Run the testsuite
6666
run: NINJA_FLAGS=-v make check RUNTIME=wasmtime

docker_build.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ docker build \
88

99
echo "Building the package in docker image"
1010
mkdir -p ~/.ccache
11-
arch=$(dpkg --print-architecture)
1211
docker run --rm \
1312
--user $(id -u):$(id -g) \
1413
-v "$PWD":/workspace:Z \
1514
-v ~/.ccache:/home/builder/.ccache:Z \
1615
-e NINJA_FLAGS=-v \
1716
--tmpfs /tmp:exec \
1817
wasi-sdk-builder:latest \
19-
make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON DEB_ARCH=$arch TAR_MACHINE=linux-$arch
18+
make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON

tar_from_installation.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ fi
2222
if [ -n "$4" ]; then
2323
MACHINE="$4"
2424
else
25-
case "$(uname -s)" in
26-
Linux*) MACHINE=linux;;
27-
Darwin*) MACHINE=macos;;
28-
CYGWIN*) MACHINE=cygwin;;
29-
MINGW*) MACHINE=mingw;;
30-
MSYS*) MACHINE=msys;; #MSYS_NT-10.0-19043
31-
*) MACHINE="UNKNOWN"
25+
case "$(uname -s):$(uname -m)" in
26+
Linux*:aarch64) MACHINE=linux-arm64;;
27+
Linux*:x86_64) MACHINE=linux-amd64;;
28+
Darwin*) MACHINE=macos;;
29+
CYGWIN*) MACHINE=cygwin;;
30+
MINGW*) MACHINE=mingw;;
31+
MSYS*) MACHINE=msys;; #MSYS_NT-10.0-19043
32+
*) MACHINE="UNKNOWN"
3233
esac
3334
fi
3435

0 commit comments

Comments
 (0)