build.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # .github/workflows/release.yml
  2. name: Yporaject CI
  3. on:
  4. release:
  5. types: [created]
  6. jobs:
  7. release:
  8. name: release ${{ matrix.target }}
  9. runs-on: ubuntu-latest
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. include:
  14. - target: x86_64-pc-windows-gnu
  15. archive: zip
  16. - target: x86_64-unknown-linux-musl
  17. archive: tar.gz tar.xz tar.zst
  18. - target: x86_64-apple-darwin
  19. archive: zip
  20. steps:
  21. - uses: actions/checkout@master
  22. - name: Compile and release1
  23. uses: rust-build/rust-build.action@v1.4.3
  24. env:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  26. with:
  27. RUSTTARGET: ${{ matrix.target }}
  28. ARCHIVE_TYPES: ${{ matrix.archive }}
  29. - uses: actions/checkout@master
  30. - name: Compile and release2
  31. uses: rust-build/rust-build.action@v1.4.3
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. with:
  35. RUSTTARGET: ${{ matrix.target }}
  36. ARCHIVE_TYPES: ${{ matrix.archive }}
  37. SRC_DIR: license-gen