From 48c1143ebc7885e727d59953caf83b9400b48ffa Mon Sep 17 00:00:00 2001 From: Henri Lunnikivi Date: Mon, 29 Apr 2024 17:49:56 +0300 Subject: [PATCH 1/3] Always enable riscv Fixes #14 --- examples/headsail-bsp/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/headsail-bsp/Cargo.toml b/examples/headsail-bsp/Cargo.toml index 91b37b48..4b313fa5 100644 --- a/examples/headsail-bsp/Cargo.toml +++ b/examples/headsail-bsp/Cargo.toml @@ -18,12 +18,12 @@ hpc = [] sysctrl = [] # This is generated by the above options, don't use directly -rt = ["dep:riscv-rt", "dep:riscv"] +rt = ["dep:riscv-rt"] [dependencies] ufmt = "0.2.0" riscv-rt = { version = "0.12.2", optional = true } -riscv = { version = "0.11.1", optional = true } +riscv = { version = "0.11.1" } riscv-peripheral = { version = "0.1.0", optional = true } riscv-pac = { version = "0.1.1", optional = true } From e81892a233df5437d6aa9714583608ca9baa0d2e Mon Sep 17 00:00:00 2001 From: Henri Lunnikivi Date: Mon, 29 Apr 2024 17:57:23 +0300 Subject: [PATCH 2/3] CI: format --- .github/workflows/validate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c1ffaaf6..0902be4c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,7 +16,6 @@ env: jobs: build-dla-example: - runs-on: ubuntu-latest steps: From 70a8d4e87584c2476833d51eabbf28b97a940841 Mon Sep 17 00:00:00 2001 From: Henri Lunnikivi Date: Mon, 29 Apr 2024 17:57:28 +0300 Subject: [PATCH 3/3] CI: build FFI --- .github/workflows/validate.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 0902be4c..ed430e8d 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -56,3 +56,17 @@ jobs: uses: actions/upload-artifact@v4 with: path: snapshots/ + + build-ffi: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install requirements + run: rustup target add riscv64imac-unknown-none-elf + - name: Build FFI without RT on SysCtrl + working-directory: ./examples/headsail-bsp-ffi + run: cargo build --target=riscv64imc-unknown-none-elf -Fpanic-uart + - name: Build FFI without RT on HPC + working-directory: ./examples/headsail-bsp-ffi + run: cargo build --target=riscv64imac-unknown-none-elf -Fpanic-uart