-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.67 KB
/
build-rizzybox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build Rizzybox
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C target-feature=+crt-static"
jobs:
build:
name: Build - ${{ matrix.platform.target }}
strategy:
matrix:
platform:
# FIXME: linker errors when building for FreeBSD
# - target: FreeBSD-x86_64
# runs-on: ubuntu-22.04
# target: x86_64-unknown-freebsd
# skip_tests: true
- target: x86_64-unknown-linux-musl
runs-on: ubuntu-22.04
- target: aarch64-unknown-linux-musl
runs-on: ubuntu-22.04
- target: riscv64gc-unknown-linux-gnu
runs-on: ubuntu-22.04
- target: x86_64-apple-darwin
runs-on: macOS-latest
- target: aarch64-apple-darwin
runs-on: macOS-latest
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build binary
uses: houseabsolute/actions-rust-cross@e021eb0bd0406694c4c3bd14cfce45df810dfaa5 # v0.0.15
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@faaa2226338d8b3edbed23cf0453b5fbde42c501 # v0.0.2
with:
executable-name: rizzybox
changes-file: "CHANGELOG.md"
target: ${{ matrix.platform.target }}
archive-name: "rizzybox-${{ matrix.platform.target}}"