build.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. - name: Compile node_inject
  22. uses: rust-build/rust-build.action@v1.4.3
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. with:
  26. RUSTTARGET: ${{ matrix.target }}
  27. ARCHIVE_TYPES: ${{ matrix.archive }}
  28. ARCHIVE_NAME: node_inject
  29. - uses: actions/checkout@master
  30. - name: Compile license-gen
  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
  38. ARCHIVE_NAME: license-gen