From 55feb6eab134370cf9a5863b3827c898c041cbff Mon Sep 17 00:00:00 2001 From: nihui Date: Wed, 8 Jan 2025 23:21:38 +0800 Subject: [PATCH] ci riscv builders --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95bf212..7eb28c3 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: build-test + run: | + gcc main.c -o ruapu + ./ruapu + - name: build-test-clang + run: | + clang main.c -o ruapu-clang + ./ruapu-clang