Skip to content

v0.3.0

v0.3.0 #11

Workflow file for this run

name: Release
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-release-files:
name: Build release files for ${{ matrix.arch }}-${{ matrix.platform }}
if: github.repository_owner == 'clechasseur' # Don't build on forks
strategy:
fail-fast: false
matrix:
arch: [ aarch64, x86_64, universal ]
platform: [ unknown-linux-gnu, apple-darwin, pc-windows-msvc ]
include:
- os: ubuntu-latest
- platform: apple-darwin
os: macos-latest
- platform: pc-windows-msvc
os: windows-latest
- crt-static: false
- platform: pc-windows-msvc
crt-static: true
exclude:
- arch: aarch64
platform: unknown-linux-gnu
- arch: universal
platform: unknown-linux-gnu
- arch: universal
platform: pc-windows-msvc
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1
with:
toolchain: stable
cache: false
- name: Setup cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@63783cd199d7373d305308f05ac514356bad2ba7 # v1.28.0
with:
target: ${{ matrix.arch }}-${{ matrix.platform }}
- name: Set flag to link crt-static
run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> ${GITHUB_ENV}
if: ${{ matrix.crt-static }}
- name: Build binaries and upload to GitHub release
uses: taiki-e/upload-rust-binary-action@e7953b6078194a4ae5f5619632e3715db6275561 # v1.24.0
with:
bin: auxiliaire
token: ${{ secrets.GITHUB_TOKEN }}
archive: $bin-$target-$tag
target: ${{ matrix.arch }}-${{ matrix.platform }}
include: LICENSE,README.md
leading-dir: true