Skip to content

Make Linux aarch64 binaries on release too #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Loading