Merge branch 'main' of github.com:RGGH/mif #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Cross Compile for Raspberry Pi 5 (ARM64) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
component: rustfmt | |
- name: Install cross | |
run: cargo install cross | |
- name: Build for ARM64 (Raspberry Pi 5) | |
run: cross build --target aarch64-unknown-linux-gnu --release | |
- name: Upload artifact for Raspberry Pi | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pi-build | |
path: target/aarch64-unknown-linux-gnu/release/mif | |