Skip to content

Commit

Permalink
ci: compile tools into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Jan 2, 2024
1 parent 6874b29 commit ad4afe0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ on:
types: [published]

jobs:
build-release:
name: Build tools/${{ matrix.build }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [system-stats]
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: x86_64-unknown-linux-musl

- name: Build binary
working-directory: tools/${{ target.build }}
run: cargo build --verbose --release

- name: Upload release archive
uses: softprops/action-gh-release@v1
working-directory: tools/${{ target.build }}
with:
files: target/release/${{ target.build }}

build-release:
name: Build release for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit ad4afe0

Please sign in to comment.