Create rust.yml github workflow

This commit is contained in:
valhrafnaz 2024-11-21 18:02:46 +01:00 committed by GitHub
parent b59cc47845
commit 1b04275f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

22
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,22 @@
on:
release:
types: [created]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu, aarch64-apple-darwin, aarch64-unknown-linux-gnu]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"