Release #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
permissions: | |
contents: write | |
name: Release | |
on: | |
push: | |
tags: | |
- "[0-9]+.*" | |
jobs: | |
create-release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: taiki-e/create-gh-release-action@v1 | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
upload-assets: | |
name: Build ${{ matrix.job.target }} | |
runs-on: ${{ matrix.job.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
job: | |
- { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04 } | |
- { target: x86_64-apple-darwin, os: macos-latest } | |
- { target: x86_64-pc-windows-gnu, os: windows-latest } | |
- { target: x86_64-unknown-linux-musl, os: ubuntu-20.04, use-cross: true } | |
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, use-cross: true } | |
- { target: aarch64-apple-darwin, os: macos-latest, use-cross: true } | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: dtolnay/[email protected] | |
with: | |
targets: ${{ matrix.job.target }} | |
- name: Install cross | |
if: matrix.job.use-cross | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cross | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
bin: difft | |
# (optional) On which platform to distribute the `.tar.gz` file. | |
tar: unix | |
# (optional) On which platform to distribute the `.zip` file. | |
zip: windows | |
# (optional) Target triple, default is host triple. | |
target: ${{ matrix.target }} | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |