From 567d3c5853b47ef4e7ca3938fb4976db7dbc9d79 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Fri, 29 Sep 2023 16:21:44 -0400 Subject: 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. --- .github/workflows/rust.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3