Build Webrogue SDK #9
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
| name: Build Webrogue SDK | |
| on: | |
| workflow_dispatch | |
| jobs: | |
| sdk: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Submodules | |
| run: | | |
| git submodule update --init --single-branch --depth=1 | |
| - name: Build | |
| run: | | |
| sh build.sh | |
| - name: Archive SDK | |
| run: | | |
| tar czf webrogue-x86_64-linux.tar.gz -C package/ webrogue-x86_64-linux/ | |
| cd package/ && zip -r ../webrogue-x86_64-windows.zip webrogue-x86_64-windows && cd .. | |
| tar czf webrogue-x86_64-macos.tar.gz -C package/ webrogue-x86_64-macos/ | |
| tar czf webrogue-arm64-macos.tar.gz -C package/ webrogue-arm64-macos/ | |
| - name: Update tag | |
| run: | | |
| git tag -f latest | |
| git push --force origin latest | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: | | |
| webrogue-x86_64-linux.tar.gz | |
| webrogue-x86_64-windows.zip | |
| webrogue-x86_64-macos.tar.gz | |
| webrogue-arm64-macos.tar.gz | |
| name: Continuous build | |
| allowUpdates: true | |
| tag: latest | |
| commit: ${{ github.ref }} | |
| makeLatest: true |