From 0905239add0bb0c7cb2f99ebe76ee46596ec4a75 Mon Sep 17 00:00:00 2001 From: Skyward <92672257+Deadcello@users.noreply.github.com> Date: Sat, 22 Jun 2024 18:42:33 -0400 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 104 ++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 53 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 327bdf1..8ad881d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: ''