Add riscv64 builds to CI

This commit is contained in:
Saúl Ibarra Corretgé 2024-06-07 08:29:50 +02:00 committed by GitHub
parent 6efe30b4b4
commit a4e48a6a65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View file

@ -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:

View file

@ -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: