Skip to content

Commit 3b3c873

Browse files
fixed macOS CI
1 parent f231baa commit 3b3c873

6 files changed

+22
-75
lines changed

.github/workflows/job-cmakebuild-macOS-x64.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/job-cmakebuild-macOS-arm64.yml renamed to .github/workflows/job-cmakebuild-macOS.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
# CMake build of ZEngine for macOS arm64
1+
# CMake build of ZEngine for macOS
22
#
3-
name: ZEngine macOS arm64 Workflow
3+
name: ZEngine macOS Workflow
44

55
on:
66
workflow_call:
77
inputs:
88
configuration:
99
type: string
1010
default: 'Debug'
11+
architecture:
12+
type: string
13+
default: 'x64'
1114

1215
jobs:
1316
cmake-build:
14-
name: cmake-build-macOS-arm64-${{ inputs.configuration }}
15-
runs-on: macos-latest
17+
name: cmake-build-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
18+
runs-on: ${{ inputs.architecture == 'x64' && 'macos-13' || 'macos-latest' }}
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v3
@@ -24,9 +27,9 @@ jobs:
2427
- name: Publish Build Artifacts
2528
uses: actions/upload-artifact@v4
2629
with:
27-
name: Build-macOS-arm64-${{inputs.configuration}}
30+
name: Build-macOS-${{ inputs.architecture }}-${{inputs.configuration}}
2831
path: |
29-
Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/osx-arm64/publish/
32+
Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/osx-${{ inputs.architecture }}/publish/
3033
Result.Darwin.x64.${{inputs.configuration}}/ZEngine/tests/${{inputs.configuration}}/
3134
!Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/**/Microsoft.CodeAnalysis.CSharp.resources.dll
3235
!Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/**/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll

.github/workflows/job-deploy-macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
deploy:
1717
name: deploy-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
18-
runs-on: ${{ matrix.architecture == 'x64' && 'macos-13' || 'macos-latest' }}
18+
runs-on: ${{ inputs.architecture == 'x64' && 'macos-13' || 'macos-latest' }}
1919
steps:
2020
- uses: actions/download-artifact@v4
2121
with:

.github/workflows/job-test-macOS-x64.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/job-test-macOS-arm64.yml renamed to .github/workflows/job-test-macOS.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
# Run tests for macOS arm64
1+
# Run tests for macOS
22
#
3-
name: macOS arm64 Test Workflow
3+
name: macOS Test Workflow
44

55
on:
66
workflow_call:
77
inputs:
88
configuration:
99
type: string
1010
default: 'Debug'
11+
architecture:
12+
type: string
13+
default: 'x64'
1114

1215
jobs:
1316
test:
14-
name: test-macOS-arm64-${{ inputs.configuration }}
15-
runs-on: macos-latest
17+
name: test-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
18+
runs-on: ${{ inputs.architecture == 'x64' && 'macos-13' || 'macos-latest' }}
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v3
1922

2023
- uses: actions/download-artifact@v4
2124
with:
22-
name: Build-macOS-arm64-${{ inputs.configuration }}
25+
name: Build-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
2326
path: Result.Darwin.x64.${{ inputs.configuration }}
2427

2528
- name: Run Tests

.github/workflows/macOS-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ jobs:
88
matrix:
99
buildConfiguration: [Debug, Release]
1010
architecture: [x64, arm64]
11-
uses: ./.github/workflows/job-cmakebuild-macOS-${{ matrix.architecture }}.yml
11+
uses: ./.github/workflows/job-cmakebuild-macOS.yml
1212
with:
1313
configuration: ${{matrix.buildConfiguration}}
14+
architecture: ${{ matrix.architecture }}
1415

1516
test:
1617
needs: cmake-build
1718
strategy:
1819
matrix:
1920
testConfiguration: [Debug, Release]
2021
architecture: [x64, arm64]
21-
uses: ./.github/workflows/job-test-macOS-${{ matrix.architecture }}.yml
22+
uses: ./.github/workflows/job-test-macOS.yml
2223
with:
2324
configuration: ${{matrix.testConfiguration}}
25+
architecture: ${{ matrix.architecture }}
2426

2527
deploy:
2628
needs: test

0 commit comments

Comments
 (0)