aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yaml
diff options
context:
space:
mode:
authorIan McIntyre <ianpmcintyre@gmail.com>2023-09-29 16:21:44 -0400
committerIan McIntyre <ianpmcintyre@gmail.com>2023-09-29 16:44:04 -0400
commit567d3c5853b47ef4e7ca3938fb4976db7dbc9d79 (patch)
treeb658ec62fa2303fd840984a4437b8858d9b494e8 /.github/workflows/rust.yaml
parent96cea217ae8bb0464d7e5774d806435abd6ebb7f (diff)
Test with GNU ld in CI
Ensure that we can use GCC's linker to generate our Rust firmware. This is useful for exploring mixed-language firmware builds.
Diffstat (limited to '.github/workflows/rust.yaml')
-rw-r--r--.github/workflows/rust.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml
index 0f3616c..6b58a5e 100644
--- a/.github/workflows/rust.yaml
+++ b/.github/workflows/rust.yaml
@@ -53,6 +53,15 @@ jobs:
with:
command: test
args: --tests -- --include-ignored
+ - name: Install ARM GCC
+ run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
+ - name: Check binaries that are linked with GNU's ld
+ env:
+ CARGO_TARGET_THUMBV7EM_NONE_EABIHF_RUSTFLAGS: "-C linker=arm-none-eabi-gcc -C link-arg=-mcpu=cortex-m7 -C link-arg=-mfloat-abi=hard -C link-arg=-mfpu=fpv5-d16 -C link-arg=-nostartfiles"
+ uses: actions-rs/cargo@v1
+ with:
+ command: test
+ args: --tests -- --ignored
boards:
runs-on: ubuntu-latest