Repository navigation
Add USB mouse support via the dock #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build and release the core on a version tag. | |
| # git tag v0.3.0 && git push origin v0.3.0 -> release | |
| # git tag v0.3.0-beta && git push origin v0.3.0-beta -> pre-release | |
| # Repo setting: Actions -> Workflow permissions -> "Read and write". | |
| name: Build & Release | |
| on: | |
| push: | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Compile bitstream | |
| run: | | |
| docker run --rm -v "${{ github.workspace }}:/build" -w /build \ | |
| raetro/quartus:21.1 \ | |
| quartus_sh --flow compile projects/snes_pocket.qpf | |
| sudo chown -R "$USER" projects/output_files | |
| - name: Upload logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: quartus-output | |
| path: projects/output_files/ | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Convert assets | |
| # loader.bin is committed (rebuild locally with scripts/build-loader.sh | |
| # when support/mk3_loader.asm changes). | |
| run: | | |
| python3 -m pip install --quiet pillow | |
| scripts/build-icon-image.sh | |
| - name: Package core | |
| run: scripts/build-release.sh | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release/*.zip | |
| prerelease: ${{ contains(github.ref_name, '-') }} | |
| generate_release_notes: true |