Skip to content

Commit 2b4d27b

Browse files
gh actions so good
1 parent 5d09092 commit 2b4d27b

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ jobs:
2222
- name: Build container
2323
run: docker build -t cross-armv7:latest -f armv7.dockerfile .
2424

25+
- name: Install Rust toolchain
26+
uses: actions-rust-lang/setup-rust-toolchain@v1
27+
28+
- name: Install cross
29+
run: cargo install cross --git https://github.com/cross-rs/cross
30+
2531
- name: Build binary
26-
uses: houseabsolute/actions-rust-cross@v1
27-
with:
28-
command: build
29-
target: ${{ matrix.platform.target }}
30-
args: "--locked --release"
31-
strip: true
32+
run: cross build --target ${{ matrix.platform.target }} --locked --release
3233

3334
- name: Upload binary
3435
uses: actions/upload-artifact@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ slint-build = "1.12.1"
2626
members = ["moonraker-rs"]
2727

2828
[workspace.metadata.cross.target.armv7-unknown-linux-musleabihf]
29-
image = "cross-armv7:latest"
29+
image = "cross-armv7:latest"

0 commit comments

Comments
 (0)