Skip to content

Commit

Permalink
Merge branch 'master' into merge-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce authored Oct 27, 2024
2 parents aebac2d + 78e0b63 commit 7e7cef9
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,13 +78,26 @@ 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"
merge:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 7e7cef9

Please sign in to comment.