Re-added Android, no Mac support though haha #19
This file contains 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: 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: EclipseMenu/bindings | |
bindings-ref: main | |
combine: true | |
export-pdb: true | |
#sdk: 'nightly' # remove after 3.0.0 is out | |
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: dev | |
name: 'Development Release' | |
body: | | |
This is a dev build of the mod for commit ${{ github.sha }} (${{ github.event.head_commit.message }}). | |
Whatever you do, do **NOT** download this at any circumstance, this is not stable and contains lots of bugs and issues. | |
files: | | |
${{ github.workspace }}/bin/eclipse.eclipse-menu.geode | |