Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmindlin committed Feb 19, 2024
1 parent 9ca01e6 commit a557d8e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
on:
release:
types: [created]
name: Main

on: push

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
name: release ${{ matrix.os }}
runs-on: ${{ matrix.os }}
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
os: [ubuntu-latest, windows-latest, macos-latest]
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 }}
ARCHIVE_TYPES: ${{ matrix.archive }}
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a557d8e

Please sign in to comment.