Skip to content

Bump Ubuntu runner to 22.04, Update checkout and setup-python actions… #145

Bump Ubuntu runner to 22.04, Update checkout and setup-python actions…

Bump Ubuntu runner to 22.04, Update checkout and setup-python actions… #145

Workflow file for this run

name: 🍎 macOS Builds
on:
push:
branches: [ godot-3.x ]
# Global Settings
env:
PROJECT_FOLDER: .
TARGET_PATH: demo/addons/godot-sqlite/bin/osx/
TARGET_NAME: libgdsqlite
TARGET: release
jobs:
macos-compilation:
name: MacOS Compilation
runs-on: "macos-11"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
# Setup scons, print python version and scons version info, so if anything is broken it won't run the build.
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python --version
scons --version
- name: Compilation
run: |
mkdir -v -p ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}
cd ${{env.PROJECT_FOLDER}}
cd godot-cpp
scons platform=osx bits=64 target=${{env.TARGET}} generate_bindings=yes -j $(sysctl -n hw.logicalcpu)
cd ..
scons platform=osx target=${{env.TARGET}} target_path=${{env.TARGET_PATH}} target_name=${{env.TARGET_NAME}}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: osx
path: ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}