Skip to content

Add a github runner for macOS builds. #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/**/*
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these lines needed for macos?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose not...

I failed to check if those files were generated in the first place, though the python folder also looks suspiciously empty so that's probably the next thing I will have to take a look at.

SCR-20241025-calj

!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"
Loading