aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyropro <[email protected]>2024-02-07 22:10:02 +0000
committerGitHub <[email protected]>2024-02-07 22:10:02 +0000
commit32edf17c901f35d9e5e9ae15906342c3853ec841 (patch)
treebf62fec9293ec046bdacd3a6a22ca418ff72f507
parent2092c9e8770a9ec419478d9eb1a1a3cdbf998b6c (diff)
added workflow to auto build on release
-rw-r--r--.github/workflows/release.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..347c327
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,27 @@
+on:
+ release:
+ types: [created]
+
+jobs:
+ release:
+ name: release ${{ matrix.target }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - target: x86_64-pc-windows-gnu
+ archive: zip
+ - target: x86_64-unknown-linux-musl
+ archive: tar.gz tar.xz tar.zst
+ - target: x86_64-apple-darwin
+ archive: zip
+ steps:
+ - uses: actions/checkout@master
+ - name: Compile and release
+ uses: rust-build/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ RUSTTARGET: ${{ matrix.target }}
+ ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file