Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 2e2a789

Browse files
committed
Add a binary workflow
1 parent 114a662 commit 2e2a789

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/binary.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- "**.md"
5+
- "**.ftl"
6+
branches:
7+
- master
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
name: Rust project - latest
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
target:
19+
- x86_64-unknown-linux-gnu
20+
- aarch64-unknown-linux-gnu
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions-rust-lang/setup-rust-toolchain@v1
25+
with:
26+
target: ${{ matrix.target }}
27+
28+
- if: matrix.target == 'x86_64-unknown-linux-musl'
29+
run: |
30+
sudo apt update
31+
sudo apt install -y --no-install-recommends mold clang pkgconf
32+
33+
- if: matrix.target == 'armv7-unknown-linux-musleabihf'
34+
run: |
35+
sudo apt update
36+
sudo apt install -y gcc-arm-linux-gnueabihf mold clang pkgconf
37+
38+
- name: Build
39+
run: cargo build --release --target ${{ matrix.target }}
40+
41+
- name: Upload artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: scripty_v2-${{ matrix.target }}
45+
path: target/${{ matrix.target }}/release/scripty_v2

0 commit comments

Comments
 (0)