release.yml 927 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. on:
  2. push:
  3. branches:
  4. - master
  5. jobs:
  6. release:
  7. name: Release to GitHub
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout repository
  11. uses: actions/checkout@v2
  12. - uses: actions/cache@v2
  13. id: cache-rustup
  14. with:
  15. path: ~/.cache/rustup/
  16. key: ${{ runner.os }}-rustup
  17. - name: rustup
  18. run: |
  19. rustup toolchain install stable
  20. rustup target add wasm32-unknown-unknown
  21. rustup component add rustfmt
  22. - name: Build v86
  23. run: make build/libv86.js build/v86.wasm build/v86-fallback.wasm
  24. - name: Release to GitHub
  25. uses: marvinpinto/action-automatic-releases@latest
  26. with:
  27. title: Latest Release
  28. automatic_release_tag: latest
  29. repo_token: "${{ secrets.GITHUB_TOKEN }}"
  30. files: |
  31. build/*.js
  32. build/*.js.map
  33. build/*.wasm