diff --git a/.github/workflows/run-checks.yml b/.github/workflows/run-checks.yml index ed2cb595..1c6915a7 100644 --- a/.github/workflows/run-checks.yml +++ b/.github/workflows/run-checks.yml @@ -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 @@ -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 \ No newline at end of file