-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.05 KB
/
binary.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
name: Build binaries
on:
push:
branches:
- main
jobs:
build:
container:
image: fedora:latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: dnf install -y gcc gcc-c++ make pkg-config musl-devel musl-libc-static musl-clang
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build release binaries
run: |
rustup target add x86_64-unknown-linux-musl
make package CARGO_ARGS="--target=x86_64-unknown-linux-musl" CARGO_TARGET="x86_64-unknown-linux-musl/release"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: boson-x86_64-unknown-linux-musl
path: boson.tar.zst