2022-07-26 23:55:13 +02:00
|
|
|
name: Compile & Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
tags:
|
2022-07-27 19:56:23 +02:00
|
|
|
- "*"
|
2022-07-26 23:55:13 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release ${{ matrix.target }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false # Don't fail all jobs even if one fails
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- target: x86_64-unknown-linux-musl
|
|
|
|
archive: tar.gz tar.xz
|
|
|
|
- target: x86_64-apple-darwin
|
|
|
|
archive: zip
|
2022-07-27 19:56:23 +02:00
|
|
|
|
2022-07-26 23:55:13 +02:00
|
|
|
steps:
|
2022-07-27 19:56:23 +02:00
|
|
|
- uses: actions/checkout@main
|
2022-07-26 23:55:13 +02:00
|
|
|
- name: Compile and release
|
|
|
|
uses: rust-build/rust-build.action@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
RUSTTARGET: ${{ matrix.target }}
|
|
|
|
ARCHIVE_TYPES: ${{ matrix.archive }}
|
2022-07-27 19:56:23 +02:00
|
|
|
EXTRA_FILES: "README.md LICENSE"
|