Skip to content

Commit

Permalink
Add attempt at automated OSX build
Browse files Browse the repository at this point in the history
  • Loading branch information
kb173 committed Feb 6, 2021
1 parent 538e2b3 commit c395052
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build-osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This is a basic workflow to help you get started with Actions

name: CI

# 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 ]
pull_request:
branches: [ master ]

# 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-latest

# 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: 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 }}-${{ hashFiles('godot-cpp') }}

- 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
- name: Generate Godot-CPP bindings
if: steps.cache-bindings.outputs.cache-hit != 'true'
run: scons platform=osx generate_bindings=yes
working-directory: godot-cpp

- name: Build Geodot
run: scons platform=osx osgeo_path=$(brew info gdal | grep '/usr/local' | cut -d ' ' -f 1)

0 comments on commit c395052

Please sign in to comment.