Add riscv64 builds to CI
This commit is contained in:
parent
6efe30b4b4
commit
a4e48a6a65
2 changed files with 48 additions and 0 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
@ -71,6 +71,26 @@ jobs:
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
|
linux-riscv64:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: alpine.sh {0}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: jirutka/setup-alpine@v1
|
||||||
|
with:
|
||||||
|
arch: riscv64
|
||||||
|
packages: "build-base make cmake"
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
make
|
||||||
|
- name: stats
|
||||||
|
run: |
|
||||||
|
make stats
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
make test
|
||||||
linux-s390x:
|
linux-s390x:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
|
|
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
@ -34,6 +34,34 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: qjs
|
name: qjs
|
||||||
path: build/*-linux-aarch64
|
path: build/*-linux-aarch64
|
||||||
|
linux-riscv64:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: jirutka/setup-alpine@v1
|
||||||
|
with:
|
||||||
|
arch: riscv64
|
||||||
|
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-riscv64
|
||||||
|
mv build/qjsc build/qjsc-linux-riscv64
|
||||||
|
- name: check
|
||||||
|
shell: alpine.sh {0}
|
||||||
|
run: |
|
||||||
|
file build/*-linux-riscv64
|
||||||
|
- name: upload
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: qjs
|
||||||
|
path: build/*-linux-riscv64
|
||||||
linux-x86:
|
linux-x86:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue