From 50af55e0ad75f84303dfd73fda7c7d1fe96be81e Mon Sep 17 00:00:00 2001 From: Nikolai Schimke <94403162+NikolaiSch@users.noreply.github.com> Date: Thu, 1 Feb 2024 00:35:58 +0000 Subject: [PATCH] Create rust-release.yml --- .github/workflows/rust-release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rust-release.yml diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml new file mode 100644 index 0000000..ca7a78d --- /dev/null +++ b/.github/workflows/rust-release.yml @@ -0,0 +1,21 @@ +on: + release: + types: [created] + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl] + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + EXTRA_FILES: "README.md LICENSE"