From ad4afe02ce7f4a2028e8095e87ea7b2621622f1f Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Tue, 2 Jan 2024 18:20:35 +0530 Subject: [PATCH] ci: compile tools into release --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a4f47f4..bb9f2c3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}