Merge branch 'geode-sdk:main' into main #18
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 Geode Mod | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "**" | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: Windows | |
| os: windows-latest | |
| - name: MacOS | |
| os: macos-latest | |
| - name: Android32 | |
| os: ubuntu-latest | |
| target: Android32 | |
| - name: Android64 | |
| os: ubuntu-latest | |
| target: Android64 | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build the mod | |
| uses: geode-sdk/build-geode-mod@main | |
| with: | |
| bindings: geode-sdk/bindings | |
| bindings-ref: main | |
| combine: true | |
| target: ${{ matrix.config.target }} | |
| package: | |
| name: Package builds | |
| runs-on: ubuntu-latest | |
| needs: ['build'] | |
| steps: | |
| - uses: geode-sdk/build-geode-mod/combine@main | |
| id: build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Geode Build | |
| path: ${{ steps.build.outputs.build-output }} | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: ${{ github.workspace }}/bin | |
| merge-multiple: true | |
| - name: Get latest release tag | |
| id: get_latest_release | |
| run: echo ::set-output name=tag::$(curl -s https://api.github.com/repos/Prevter/OpenHack/releases/latest | jq -r .tag_name) | |
| - name: Create nightly release | |
| uses: andelf/nightly-release@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: nightly | |
| name: 'Development Release' | |
| body: | | |
| This is a nightly build of the mod for commit ${{ github.sha }} (${{ github.event.head_commit.message }}). | |
| This may not be stable and may contain bugs and issues. | |
| files: | | |
| ${{ github.workspace }}/bin/rustring.example_mod.geode | |