Skip to content

Add missed-TU diagnose and rescue workflow #5

Add missed-TU diagnose and rescue workflow

Add missed-TU diagnose and rescue workflow #5

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-14
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install cross
if: matrix.os == 'ubuntu-latest'
run: cargo install cross --locked
- name: Build release binary
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
cross build --release --target "${{ matrix.target }}" --bin trackclustertu
else
cargo build --release --target "${{ matrix.target }}" --bin trackclustertu
fi
- name: Package release artifact
run: |
archive="trackclustertu-${{ github.ref_name }}-${{ matrix.target }}.tar.gz"
tar -C "target/${{ matrix.target }}/release" -czf "$archive" trackclustertu
echo "ARCHIVE=$archive" >> "$GITHUB_ENV"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: trackclustertu-${{ matrix.target }}
path: ${{ env.ARCHIVE }}
release:
name: Publish Release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: trackclustertu-*.tar.gz