Skip to content

Commit 2b55e10

Browse files
Auto build recovery
1 parent 7672e31 commit 2b55e10

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Recovery build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "recovery/**"
9+
- "driver/**"
10+
11+
jobs:
12+
release:
13+
name: Recovery release build - ${{ matrix.platform.os-name }}
14+
strategy:
15+
matrix:
16+
platform:
17+
- os-name: Linux-armv7
18+
runs-on: ubuntu-24.04
19+
target: armv7-unknown-linux-musleabihf
20+
21+
runs-on: ${{ matrix.platform.runs-on }}
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Build container
27+
run: docker build -t cross-armv7:latest -f armv7.dockerfile .
28+
29+
- name: Install Rust toolchain
30+
uses: actions-rust-lang/setup-rust-toolchain@v1
31+
with:
32+
rustflags: ""
33+
34+
- name: Install cross
35+
run: cargo install cross --git https://github.com/cross-rs/cross
36+
37+
- name: Build binary
38+
run: |
39+
cd recovery
40+
cross build --target ${{ matrix.platform.target }} --locked --release
41+
42+
- name: Upload binary
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: ${{ matrix.platform.os-name }}
46+
path: recovery/target/${{ matrix.platform.target }}/release/recovery

0 commit comments

Comments
 (0)