Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Split builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Apr 10, 2024
1 parent 6420d04 commit ad3f532
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/actions/ci-build.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad3f532

Please sign in to comment.