Fix macOS architecture mismatch and force stable Python in CI #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Geode Mod | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| build: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| config: | ||
| - name: Windows | ||
| os: windows-latest | ||
| target: windows | ||
| - name: macOS | ||
| os: macos-latest | ||
| target: mac-os | ||
| - name: iOS | ||
| os: macos-latest | ||
| target: ios | ||
| - name: Android64 | ||
| os: ubuntu-latest | ||
| target: android64 | ||
| - name: Android32 | ||
| os: ubuntu-latest | ||
| target: android32 | ||
| name: ${{ matrix.config.name }} | ||
| runs-on: ${{ matrix.config.os }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Build Mod | ||
| uses: geode-sdk/build-geode-mod@main | ||
| with: | ||
| bindings-checkout: false | ||
| combine: true | ||
| target: ${{ matrix.config.target }} | ||
| # Force CMake to use the Python we just set up | ||
| extra-config: -DPython3_ROOT_DIR=${{ env.pythonLocation }} -DPython3_FIND_STRATEGY=LOCATION -DPython3_FIND_FRAMEWORK=NEVER | ||