build.yml 730 B

123456789101112131415161718192021222324252627
  1. # .github/workflows/release.yml
  2. on: workflow_dispatch
  3. jobs:
  4. release:
  5. name: release ${{ matrix.target }}
  6. runs-on: ubuntu-latest
  7. strategy:
  8. fail-fast: false
  9. matrix:
  10. include:
  11. - target: x86_64-pc-windows-gnu
  12. archive: zip
  13. - target: x86_64-unknown-linux-musl
  14. archive: tar.gz tar.xz tar.zst
  15. - target: x86_64-apple-darwin
  16. archive: zip
  17. steps:
  18. - uses: actions/checkout@master
  19. - name: Compile and release
  20. uses: rust-build/rust-build.action@v1.4.3
  21. env:
  22. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  23. with:
  24. RUSTTARGET: ${{ matrix.target }}
  25. ARCHIVE_TYPES: ${{ matrix.archive }}