build.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # .github/workflows/release.yml
  2. name: Yporaject CI
  3. on:
  4. release:
  5. types: [created]
  6. jobs:
  7. release_node_inject:
  8. name: release node_inject ${{ matrix.target }}
  9. runs-on: ubuntu-latest
  10. if: github.event_name == 'release'
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. include:
  15. - target: x86_64-pc-windows-gnu
  16. archive: zip
  17. - target: x86_64-unknown-linux-musl
  18. archive: tar.gz
  19. steps:
  20. - uses: actions/checkout@master
  21. - name: Compile and release
  22. uses: rust-build/rust-build.action@master
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. with:
  26. RUSTTARGET: ${{ matrix.target }}
  27. ARCHIVE_TYPES: ${{ matrix.archive }}
  28. ARCHIVE_NAME: node_inject_${{ matrix.target }}
  29. release_license-gen:
  30. name: release license-gen ${{ matrix.target }}
  31. runs-on: ubuntu-latest
  32. if: github.event_name == 'release'
  33. strategy:
  34. fail-fast: false
  35. matrix:
  36. include:
  37. - target: x86_64-pc-windows-gnu
  38. archive: zip
  39. - target: x86_64-unknown-linux-musl
  40. archive: tar.gz
  41. steps:
  42. - uses: actions/checkout@master
  43. - name: Compile and release
  44. uses: rust-build/rust-build.action@master
  45. env:
  46. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  47. with:
  48. RUSTTARGET: ${{ matrix.target }}
  49. ARCHIVE_TYPES: ${{ matrix.archive }}
  50. SRC_DIR: "license-gen"
  51. ARCHIVE_NAME: license-gen_${{ matrix.target }}