Skip to content

Commit

Permalink
For macOS building in GHA, put castle-engine on $PATH, it is easier a…
Browse files Browse the repository at this point in the history
…nd fixes VERSION=`castle-engine output version` call
  • Loading branch information
michaliskambi committed Jul 2, 2024
1 parent b63807d commit db2a99c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ jobs:
# Setup Castle Game Engine
- name: Castle Game Engine - Env CASTLE_ENGINE_PATH
run: echo "CASTLE_ENGINE_PATH=$GITHUB_WORKSPACE/castle-engine" >> $GITHUB_ENV
- name: Castle Game Engine - Env BUILD_TOOL
run: echo "BUILD_TOOL=$CASTLE_ENGINE_PATH/tools/build-tool/castle-engine" >> $GITHUB_ENV
- name: Castle Game Engine - Env PATH (non-Windows)
run: echo "PATH=$PATH:$CASTLE_ENGINE_PATH/tools/build-tool/" >> $GITHUB_ENV
- name: Castle Game Engine - Clone ${{ env.engine_tag }}
run: git clone --depth 1 --single-branch --branch ${{ env.engine_tag }} https://github.com/castle-engine/castle-engine/
- name: Castle Game Engine - Build
Expand All @@ -110,8 +110,8 @@ jobs:
- name: Package (non macOS)
if: ${{ matrix.runner != 'macos_x64' }}
run: |
${BUILD_TOOL} compile --manifest-name=CastleEngineManifest.converter.xml
${BUILD_TOOL} package
castle-engine compile --manifest-name=CastleEngineManifest.converter.xml
castle-engine package
- name: Package (macOS)
if: ${{ matrix.runner == 'macos_x64' }}
# Special order for macOS:
Expand All @@ -120,8 +120,8 @@ jobs:
# - zip it manually
# (TODO: we could add file to zip created by initial "package" instead?)
run: |
${BUILD_TOOL} compile --manifest-name=CastleEngineManifest.converter.xml
${BUILD_TOOL} package --package-format=mac-app-bundle
castle-engine compile --manifest-name=CastleEngineManifest.converter.xml
castle-engine package --package-format=mac-app-bundle
cp castle-model-converter castle-model-viewer.app/Contents/MacOS/
VERSION=`castle-engine output version`
Expand Down

0 comments on commit db2a99c

Please sign in to comment.