Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 7, 2024
1 parent 7924ef2 commit 5d13dbf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/binary.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Build binaries
on:
release:
types:
- created

push:
branches:
- main
Expand Down Expand Up @@ -31,4 +27,3 @@ jobs:
with:
name: boson-x86_64-unknown-linux-musl
path: boson.tar.zst

36 changes: 36 additions & 0 deletions .github/workflows/release-bin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build binaries (Release)
on:
push:
tags:
- "v*.*.*"

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

- 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

- name: Release
uses: softprops/action-gh-release@v2
with:
files: boson.tar.zst

0 comments on commit 5d13dbf

Please sign in to comment.