-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build for Apple Silicon with new GitHub Action
Squashed commit of the following: commit afcf14e Author: karl <[email protected]> Date: Fri Aug 16 11:34:26 2024 +0200 fix: remove debug info from GH Action commit 4bc4f21 Author: karl <[email protected]> Date: Fri Aug 16 11:13:06 2024 +0200 fix: arch env variable not being used commit 19b5274 Author: karl <[email protected]> Date: Thu Aug 15 23:25:34 2024 +0200 fix: add missing CCPPATH append for macos commit 5d0957b Author: karl <[email protected]> Date: Thu Aug 15 22:25:39 2024 +0200 fix/WIP: osgeo_path fix commit eb4d55e Author: karl <[email protected]> Date: Thu Aug 15 20:55:37 2024 +0200 fix/WIP: more detaild error message for compile issue commit 2968af2 Author: LandscapeLab Office <[email protected]> Date: Wed Aug 14 15:54:36 2024 +0200 update godot-cpp to current 4.3 RC workaround to get builds working without the BoolVariable issue recently introduced commit c4d849e Author: LandscapeLab Office <[email protected]> Date: Wed Aug 14 15:44:19 2024 +0200 fix: macos runner versions commit 387b888 Author: karl <[email protected]> Date: Tue Oct 31 19:06:38 2023 +0100 feat: first attempt at Apple Silicon runner
- Loading branch information
Showing
5 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Compile Geodot for Apple Silicon | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master, godot3, silicon-action ] | ||
pull_request: | ||
branches: [ master, godot3 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: macos-14 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get godot-cpp commit hash | ||
id: get-godot-cpp-hash | ||
run: | | ||
echo "hash=$(git submodule | head -n1 | awk '{print $1;}')" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Cache generated godot-cpp bindings | ||
id: cache-bindings | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: godot-cpp-cache | ||
with: | ||
path: godot-cpp | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.ref_name }}-${{ steps.get-godot-cpp-hash.outputs.hash }}-silicon | ||
|
||
- name: Initialize submodules | ||
if: steps.cache-bindings.outputs.cache-hit != 'true' | ||
run: git submodule update --init --recursive | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install gdal | ||
brew install scons | ||
brew install dylibbundler | ||
- name: Generate Godot-CPP bindings | ||
if: steps.cache-bindings.outputs.cache-hit != 'true' | ||
run: scons arch=arm64 generate_bindings=yes | ||
working-directory: godot-cpp | ||
|
||
- name: Build Geodot | ||
run: scons platform=macos arch=arm64 osgeo_path=$(brew info gdal | grep '/opt/homebrew/Cellar/' | cut -d ' ' -f 1) | ||
|
||
- name: Bundle dependencies | ||
run: dylibbundler -of -b -x ./demo/addons/geodot/macos/libgeodot.dylib -d ./demo/addons/geodot/macos/ -p @executable_path | ||
|
||
- name: Publish Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos-build | ||
path: | | ||
demo |
This file contains 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
This file contains 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