Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SCZSkyward authored Jun 22, 2024
1 parent a5a6938 commit 0905239
Showing 1 changed file with 51 additions and 53 deletions.
104 changes: 51 additions & 53 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,51 @@
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:
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: Build Output
path: ${{ steps.build.outputs.build-output }}
- uses: geode-sdk/build-geode-mod@main
with:
# Which version of the SDK to use.
# Set to 'nightly' for latest commit, 'latest' for latest release
# Default: latest
sdk: ''

# Which CLI version to use.
# Default: latest
cli: ''

# Extra arguments passed to CMake when configuring. Not required.
configure-args: ''

# Extra arguments passed to CMake when building. Not required.
build-args: ''

# Which build configuration to use.
# Default: Release
build-config: ''

# Whether to export PDB files for Windows builds. Not required.
# Default: false
export-pdb: ''

# Path to the project which to build. Defaults to current directory.
path: ''

# Set this to true if you plan on merging .geode files later. See the README for more info.
# Default: false
combine: ''

# Geode target to build for. Can be either "Win64", "MacOS", "Android32" or "Android64".
# Defaults to what is appropriate for the current platform, so:
# Defaults to Win64 on windows runners
# Defaults to MacOS on macOS runners
# Defaults to Android64 on linux runners
target: ''

# What repository to use for bindings. Must be in the format "user/repo". Not required.
bindings: ''

# Which commit/branch to use for bindings. Defaults to latest commit in main branch. Not required.
bindings-ref: ''

# The android min SDK version to target. Defaults to 23. Not required.
android-min-sdk: ''

# Whether to use Link Time Optimization, improving build size at the cost of build time.
# Default: true
use-lto: ''

0 comments on commit 0905239

Please sign in to comment.