2022-01-10 07:21:26 +00:00
|
|
|
# .github/workflows/build.yml
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: release ${{ matrix.target }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2022-10-02 05:12:34 +00:00
|
|
|
- target: x86_64-unknown-linux-gnu
|
|
|
|
archive: tar.gz tar.xz
|
2022-01-10 07:21:26 +00:00
|
|
|
- target: x86_64-unknown-linux-musl
|
|
|
|
archive: tar.gz tar.xz
|
|
|
|
- target: x86_64-apple-darwin
|
2022-10-02 05:12:34 +00:00
|
|
|
archive: tar.gz tar.xz
|
|
|
|
- target: x86_64-pc-windows-gnu
|
2022-01-10 07:21:26 +00:00
|
|
|
archive: zip
|
2022-10-02 05:12:34 +00:00
|
|
|
|
2022-01-10 07:21:26 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Compile and release
|
|
|
|
uses: rust-build/rust-build.action@latest
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
RUSTTARGET: ${{ matrix.target }}
|
|
|
|
ARCHIVE_TYPES: ${{ matrix.archive }}
|