We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30fec10 commit 24ec5b0Copy full SHA for 24ec5b0
.github/workflows/cross_compile_pi5.yaml
@@ -0,0 +1,36 @@
1
+name: Rust Cross Compile for Raspberry Pi 5 (ARM64)
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v3
18
19
+ - name: Set up Rust
20
+ uses: actions-rs/toolchain@v1
21
+ with:
22
+ toolchain: stable
23
+ profile: minimal
24
+ component: rustfmt
25
26
+ - name: Install cross
27
+ run: cargo install cross
28
29
+ - name: Build for ARM64 (Raspberry Pi 5)
30
+ run: cross build --target aarch64-unknown-linux-gnu --release
31
32
+ - name: Upload artifact for Raspberry Pi
33
+ uses: actions/upload-artifact@v3
34
35
+ name: pi-build
36
+ path: target/aarch64-unknown-linux-gnu/release/maze
0 commit comments