From ad3f532f58f2b6414c1ebc7a112561a34ae57422 Mon Sep 17 00:00:00 2001 From: Oleksandr Nemesh Date: Wed, 10 Apr 2024 18:00:07 +0300 Subject: [PATCH] Split builds --- .github/actions/ci-build.yml | 26 ++++++++++++++++++++++++++ .github/workflows/build.yml | 6 +++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/actions/ci-build.yml diff --git a/.github/actions/ci-build.yml b/.github/actions/ci-build.yml new file mode 100644 index 0000000..fd0f57c --- /dev/null +++ b/.github/actions/ci-build.yml @@ -0,0 +1,26 @@ +# Calls the appropriate build script based on the target configuration. + +name: Build OpenHack + +on: + workflow_call: + inputs: + target: + description: 'The target configuration to build' + required: true + default: 'Geode' + +jobs: + geode: + name: Build Geode Mod + runs-on: ubuntu-latest + if: ${{ github.event.inputs.target == 'Geode' }} + steps: + - uses: prevter/openhack/.github/actions/ci-geode.yml@lemonade + + standalone: + name: Vanilla OpenHack + runs-on: windows-latest + if: ${{ github.event.inputs.target == 'Standalone' }} + steps: + - uses: prevter/openhack/.github/actions/ci-standalone.yml@lemonade \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a002757..addab69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,16 +15,16 @@ jobs: matrix: config: - name: Standalone - ci: ci-standalone.yml os: windows-latest - name: Geode - ci: ci-geode.yml os: windows-latest name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} steps: - - uses: prevter/openhack/.github/actions/${{ matrix.config.ci }}@lemonade + - uses: prevter/openhack/.github/actions/ci-build.yml@lemonade + with: + target: ${{ matrix.config.name }} package: name: Create nigtly release