From 2738d8f16568a5a3a996a810ca49510d1838821a Mon Sep 17 00:00:00 2001 From: nihui Date: Thu, 9 Jan 2025 12:26:06 +0800 Subject: [PATCH] ci riscv builders (#135) --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95bf212..540334b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,3 +211,24 @@ jobs: run: | docker run -u root --rm -v $(pwd):/${{ github.workspace }} -w ${{ github.workspace }} --platform linux/${{ matrix.arch }} debian:unstable-slim \ /bin/bash -c "apt update && apt install -y gcc libc6-dev && gcc main.c -o ruapu && ./ruapu" + + riscv-builders: + name: ${{ matrix.soc }} + runs-on: + - riscv-builders + - ${{ matrix.soc }} + strategy: + matrix: + soc: + - soc-spacemit-k1 + - soc-starfive-jh7100 + steps: + - uses: actions/checkout@v4 + - name: info + run: | + uname -a + cat /proc/cpuinfo + - name: build-test + run: | + gcc main.c -o ruapu + ./ruapu