contego/.github/workflows/release.yml
einisto 7810f6b38c Improved workflows
More of this bullshit devops
2022-07-27 21:26:03 +03:00

34 lines
777 B
YAML

name: Compile & Release
on:
release:
tags:
- "*"
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
steps:
- uses: actions/checkout@main
- 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 }}
EXTRA_FILES: "README.md LICENSE"