From 1746ab8e28eee49ef8479d378926554602ae2034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 28 May 2024 13:53:35 +0200 Subject: [PATCH] Make Linux aarch64 binaries on release too Fixes: https://github.com/quickjs-ng/quickjs/discussions/417 --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a930262..ffbb8e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,34 @@ on: - "v*.*.*" jobs: + linux-aarch64: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: jirutka/setup-alpine@v1 + with: + arch: aarch64 + packages: "build-base make cmake" + - name: build + shell: alpine.sh {0} + run: | + mkdir build + cd build + cmake -DBUILD_STATIC_QJS_EXE=ON .. + cd .. + cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN) + cmake --build build --target qjsc -j$(getconf _NPROCESSORS_ONLN) + mv build/qjs build/qjs-linux-aarch64 + mv build/qjsc build/qjsc-linux-aarch64 + - name: check + shell: alpine.sh {0} + run: | + file build/*-linux-aarch64 + - name: upload + uses: actions/upload-artifact@v3 + with: + name: qjs + path: build/*-linux-aarch64 linux-x86: runs-on: ubuntu-20.04 steps: @@ -28,7 +56,7 @@ jobs: - name: check shell: alpine.sh {0} run: | - file build/qjs-linux-x86 build/qjsc-linux-x86 + file build/*-linux-x86 - name: upload uses: actions/upload-artifact@v3 with: @@ -57,7 +85,7 @@ jobs: - name: check shell: alpine.sh {0} run: | - file build/qjs-linux-x86_64 build/qjsc-linux-x86_64 + file build/*-linux-x86_64 - name: upload uses: actions/upload-artifact@v3 with: