Skip to content

Commit 24ec5b0

Browse files
authored
Create cross_compile_pi5.yaml
1 parent 30fec10 commit 24ec5b0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
+36
Original file line numberDiff line numberDiff line change
@@ -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+
branches:
9+
- main
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+
with:
35+
name: pi-build
36+
path: target/aarch64-unknown-linux-gnu/release/maze

0 commit comments

Comments
 (0)