Skip to content

Commit 78e0b63

Browse files
Ivorforcemaiself
authored andcommitted
Add a github runner for macOS builds.
1 parent cb651ca commit 78e0b63

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-latest, windows-latest]
19+
os: [ubuntu-latest, windows-latest, macos-latest]
2020

2121
steps:
2222
- name: Checkout repository
@@ -47,6 +47,11 @@ jobs:
4747
run: |
4848
scons platform=windows arch=x86_64 single_source=true
4949
50+
- name: Build extension (macOS)
51+
if: matrix.os == 'macos-latest'
52+
run: |
53+
scons platform=macos arch=universal single_source=true
54+
5055
- name: Create archive (Linux)
5156
if: matrix.os == 'ubuntu-latest'
5257
run: |
@@ -73,10 +78,23 @@ jobs:
7378
!bin/**/*.exp
7479
retention-days: 30
7580

81+
- name: Upload artifacts (macOS)
82+
if: matrix.os == 'macos-latest'
83+
uses: actions/upload-artifact@v3
84+
with:
85+
name: godot-python-macos-universal
86+
path: |
87+
bin/**/*
88+
!bin/**/*.lib
89+
!bin/**/*.exp
90+
retention-days: 30
91+
7692
- name: Release artifact
7793
if: ${{ inputs.release }}
7894
run: |
7995
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
8096
echo "Releasing artifact for linux"
8197
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
8298
echo "Releasing artifact for windows"
99+
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
100+
echo "Releasing artifact for macOS"

0 commit comments

Comments
 (0)