Skip to content

release v0.11.2

release v0.11.2 #14

Workflow file for this run

---
name: Release
on:
push:
tags:
- v[0-9]+.*
jobs:
body:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract release notes
uses: ffurrer2/extract-release-notes@v2
id: release_notes
- name: Upload Body
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}
build:
permissions:
contents: write
continue-on-error: false
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add Musl
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt update
sudo apt install -y musl-tools gcc
- name: Install Target
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Compile
run: cargo build --release --target ${{ matrix.target }}
- name: Strip Binary (linux)
if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-unknown-linux-musl'
run: strip ./target/${{ matrix.target }}/release/tenere
- name: Rename Binary (unix)
if: runner.os != 'Windows'
run: mv ./target/${{ matrix.target }}/release/tenere ./tenere-${{ matrix.target }}
- name: Rename Binary (windows)
if: runner.os == 'Windows'
run: mv ./target/${{ matrix.target }}/release/tenere.exe ./tenere-${{ matrix.target }}.exe
- name: Upload Binary
uses: softprops/action-gh-release@v2
with:
files: "tenere*"