From 4e9a85ec97971494b7f042bc4e8cd0063f4ddad1 Mon Sep 17 00:00:00 2001 From: Amy Ringo Date: Sat, 4 Apr 2026 18:30:00 -0500 Subject: [PATCH] add support for cross-compiling for RVA23 --- .github/workflows/rva23.yml | 25 +++++++++++++++++++++++++ Containerfile | 17 +++++++++++++++++ scripts/zig-cc-rva23.sh | 17 +++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .github/workflows/rva23.yml create mode 100644 Containerfile create mode 100755 scripts/zig-cc-rva23.sh diff --git a/.github/workflows/rva23.yml b/.github/workflows/rva23.yml new file mode 100644 index 0000000..a994285 --- /dev/null +++ b/.github/workflows/rva23.yml @@ -0,0 +1,25 @@ +name: Cross-compile to RVA23 + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build image + run: podman build -t odorobo-builder:rva23 . + - name: Build binaries + run: podman run --rm -v ${{ github.workspace }}:/code -w /code odorobo-builder:rva23 cargo build --release + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: odorobo + path: target/riscv64a23-unknown-linux-gnu/release/odorobo diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..4500b35 --- /dev/null +++ b/Containerfile @@ -0,0 +1,17 @@ +FROM alpine:3.23.3 +RUN <