]> git.lizzy.rs Git - line_audiolizer.git/blob - .github/workflows/release.yml
Release workflow: Install alsa-lib
[line_audiolizer.git] / .github / workflows / release.yml
1 name: Release
2
3 on:
4   release:
5     types: [created]
6
7 jobs:
8   release:
9     name: release ${{ matrix.target }}
10     runs-on: ubuntu-latest
11     strategy:
12       fail-fast: false
13       matrix:
14         include:
15           - target: x86_64-pc-windows-gnu
16             archive: zip
17           - target: x86_64-unknown-linux-musl
18             archive: tar.gz tar.xz
19           - target: x86_64-apple-darwin
20             archive: zip
21     steps:
22       - uses: actions/checkout@v2
23       - name: Compile and release
24         uses: rust-build/rust-build.action@v1.3.2
25         env:
26           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27         with:
28           RUSTTARGET: ${{ matrix.target }}
29           ARCHIVE_TYPES: ${{ matrix.archive }}
30           EXTRA_FILES: "README.md LICENSE"
31           PRE_BUILD: "pre_build.sh"