Skip to content

v0.2.0

v0.2.0 #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types: [ published ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
bin: ufwlog
command: build
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
bin: ufwlog
command: build
name: Build/${{ matrix.platform.target }}
uses: ./.github/workflows/build.yml
with:
version: ${{ github.ref_name }}
os: ${{ matrix.platform.os }}
command: ${{ matrix.platform.command }}
bin: ${{ matrix.platform.bin }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
upload:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform:
- release_for: x86_64-unknown-linux-gnu
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: ufwlog
command: build
- release_for: aarch64-unknown-linux-gnu
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
bin: ufwlog
command: build
runs-on: ${{ matrix.platform.os }}
name: Upload/${{ matrix.platform.target }}
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: ${{ matrix.platform.bin }}_${{ github.ref_name }}_${{ matrix.platform.target }}
- name: Rename binary
run: mv ${{ matrix.platform.bin }} ${{ matrix.platform.bin }}_${{ github.ref_name }}_${{ matrix.platform.target }}
- name: Upload binary
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.platform.bin }}_${{ github.ref_name }}_${{ matrix.platform.target }}