From 62c6f47371179a001f0aba5142721578579c3019 Mon Sep 17 00:00:00 2001 From: YellowCat98 Date: Mon, 26 Feb 2024 22:35:01 +0100 Subject: [PATCH] trying to build for both android and windows --- .github/workflows/action.yml | 47 ++++++++++++++++++++++++++++++++++++ .github/workflows/build.yml | 47 ++++++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 .github/workflows/action.yml create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..1436096 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,47 @@ +name: Build Geode Mod + +on: + workflow_dispatch: + push: + branches: + - "main" + +jobs: + build: + strategy: + fail-fast: false + matrix: + config: + - name: Windows + os: windows-latest + + - name: Android64 + os: ubuntu-latest + target: Android64 + + name: ${{ matrix.config.name }} + runs-on: ${{ matrix.config.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Build the mod + uses: geode-sdk/build-geode-mod@main + with: + combine: true + sdk: nightly + 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@v3 + with: + name: Build Output + path: ${{ steps.build.outputs.build-output }} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1436096 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build Geode Mod + +on: + workflow_dispatch: + push: + branches: + - "main" + +jobs: + build: + strategy: + fail-fast: false + matrix: + config: + - name: Windows + os: windows-latest + + - name: Android64 + os: ubuntu-latest + target: Android64 + + name: ${{ matrix.config.name }} + runs-on: ${{ matrix.config.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Build the mod + uses: geode-sdk/build-geode-mod@main + with: + combine: true + sdk: nightly + 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@v3 + with: + name: Build Output + path: ${{ steps.build.outputs.build-output }} \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f5ddc1c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: Build Geode Mod + +on: + workflow_dispatch: + push: + branches: + - "v110" + +jobs: + build: + strategy: + fail-fast: false + matrix: + config: + - name: Windows + os: windows-latest + + - name: Android64 + os: ubuntu-latest + target: Android64 + + name: ${{ matrix.config.name }} + runs-on: ${{ matrix.config.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Build the mod + uses: geode-sdk/build-geode-mod@main + with: + combine: true + sdk: nightly + 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@v3 + with: + name: Build Output + path: ${{ steps.build.outputs.build-output }} \ No newline at end of file