name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
upload-assets:
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- name: Update system packages
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get upgrade -y
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: term-saver
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}