Skip to content

Commit

Permalink
Update workflow to cross compile during build
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Feb 27, 2024
1 parent e81fae6 commit a3c6101
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Add target
run: rustup target add armv7-unknown-linux-gnueabihf

- name: Install target building dependencies
run: sudo apt-get -qq install crossbuild-essential-armhf

- name: Run cargo test
run: cargo test
Expand All @@ -84,5 +90,8 @@ jobs:
- name: Lint pod operation
run: cargo clippy -- -D warnings

- name: Build Pod Operation Program
run: cargo build
- name: Build Pod Operation Program (debug)
run: cargo build --config target.armv7-unknown-linux-gnueabihf.linker=\"arm-linux-gnueabihf-gcc\"

- name: Build Pod Operation Program (release)
run: cargo build --config target.armv7-unknown-linux-gnueabihf.linker=\"arm-linux-gnueabihf-gcc\" --release

0 comments on commit a3c6101

Please sign in to comment.