From 4bfd2e35953c50c16f89117e7c2d0f27719f3b20 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:22:55 +0200 Subject: [PATCH] setup riscv --- .github/workflows/publish-libaec.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/publish-libaec.yml b/.github/workflows/publish-libaec.yml index 9c4b933..31b9974 100644 --- a/.github/workflows/publish-libaec.yml +++ b/.github/workflows/publish-libaec.yml @@ -40,6 +40,12 @@ jobs: archive: "tar" target: "x86_64-unknown-linux-gnu" + - platform: "ubuntu-22.04" # riscv64 + args: "--target riscv64gc-unknown-linux-gnu" + build-dir: "libaec-riscv64gc-unknown-linux-gnu" + archive: "tar" + target: "riscv64gc-unknown-linux-gnu" + - platform: "macos-latest" # Linux arm64 args: "" build-dir: "libaec-android-aarch64" @@ -81,6 +87,12 @@ jobs: echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV if: matrix.target == 'aarch64-unknown-linux-gnu' + - name: Install riscv64 toolchain + run: | + sudo apt update + sudo apt install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross + if: matrix.target == 'riscv64gc-unknown-linux-gnu' + - name: Setup Android NDK uses: nttld/setup-ndk@v1 id: setup-ndk