Skip to content

Commit

Permalink
Add a github runner for macOS builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce authored and maiself committed Oct 24, 2024
1 parent cb651ca commit 78e0b63
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -47,6 +47,11 @@ jobs:
run: |
scons platform=windows arch=x86_64 single_source=true
- name: Build extension (macOS)
if: matrix.os == 'macos-latest'
run: |
scons platform=macos arch=universal single_source=true
- name: Create archive (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -73,10 +78,23 @@ jobs:
!bin/**/*.exp
retention-days: 30

- name: Upload artifacts (macOS)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
with:
name: godot-python-macos-universal
path: |
bin/**/*
!bin/**/*.lib
!bin/**/*.exp
retention-days: 30

- name: Release artifact
if: ${{ inputs.release }}
run: |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
echo "Releasing artifact for linux"
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
echo "Releasing artifact for windows"
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
echo "Releasing artifact for macOS"

0 comments on commit 78e0b63

Please sign in to comment.