From a4e48a6a65e86b96603a685f0095f26311f94bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 7 Jun 2024 08:29:50 +0200 Subject: [PATCH] Add riscv64 builds to CI --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c12f764..f62d01c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,26 @@ jobs: - name: test run: | 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: runs-on: ubuntu-latest defaults: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffbb8e0..268b8a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,34 @@ jobs: with: name: qjs 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: runs-on: ubuntu-20.04 steps: