Skip to content

Commit

Permalink
Getting closer
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr authored Feb 9, 2024
1 parent e25229a commit eac9675
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
with:
toolchain: stable
target: arm-unknown-linux-gnueabihf
- name: Add sources for armhf
run: sudo echo .github/artifacts/sources.list > /etc/apt/sources.list

- name: Prepare for cross compilation
run: sudo dpkg --add-architecture armhf && sudo apt-get update

- name: Install dependencies for cross-compilation
run: sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross libsqlite3-0:armhf
run: sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross libsqlite3-dev:armhf

- name: Build binary for Raspberry Pi
run: cargo build --release --target=arm-unknown-linux-gnueabihf
Expand Down

0 comments on commit eac9675

Please sign in to comment.