build.yml 811 B

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