Skip to content

Commit

Permalink
Update cross_compile_pi5.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RGGH authored Nov 21, 2024
1 parent 40e0e5d commit ea5e853
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/cross_compile_pi5.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Rust Cross Compile for Raspberry Pi 5 (ARM64)

on:
Expand All @@ -13,16 +14,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
component: rustfmt

- name: Set up Rust
uses: actions/setup-rust@v1 # Corrected action version
- name: Install cross
run: cargo install cross

- name: Build project
run: cargo build --release --target aarch64-unknown-linux-gnu
- name: Build for ARM64 (Raspberry Pi 5)
run: cross build --target aarch64-unknown-linux-gnu --release

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pi-build
path: target/aarch64-unknown-linux-gnu/release/maze
- name: Upload artifact for Raspberry Pi
uses: actions/upload-artifact@v3
with:
name: pi-build
path: target/aarch64-unknown-linux-gnu/release/maze

0 comments on commit ea5e853

Please sign in to comment.