Skip to content

Commit

Permalink
Add Raspberry Pi compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikkel-T committed Feb 27, 2024
1 parent 853d4f6 commit 38fec62
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,23 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install libasound2-dev
run: sudo apt-get install -y libasound2-dev gcc-arm-linux-gnueabihf
if: matrix.os == 'ubuntu-latest'
- name: Build
run: cargo build --release --locked
- name: Compile for Raspberry Pi
run: |
rustup target add armv7-unknown-linux-gnueabihf
cargo build --release --target=armv7-unknown-linux-gnueabihf
if: matrix.os == 'ubuntu-latest'
- name: Upload Raspberry Pi binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/armv7-unknown-linux-gnueabihf/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}-rpi
tag: ${{ github.ref }}
if: matrix.os == 'ubuntu-latest'
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 38fec62

Please sign in to comment.