File tree 6 files changed +22
-75
lines changed
6 files changed +22
-75
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # CMake build of ZEngine for macOS arm64
1
+ # CMake build of ZEngine for macOS
2
2
#
3
- name : ZEngine macOS arm64 Workflow
3
+ name : ZEngine macOS Workflow
4
4
5
5
on :
6
6
workflow_call :
7
7
inputs :
8
8
configuration :
9
9
type : string
10
10
default : ' Debug'
11
+ architecture :
12
+ type : string
13
+ default : ' x64'
11
14
12
15
jobs :
13
16
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' }}
16
19
steps :
17
20
- name : Checkout repository
18
21
uses : actions/checkout@v3
24
27
- name : Publish Build Artifacts
25
28
uses : actions/upload-artifact@v4
26
29
with :
27
- name : Build-macOS-arm64 -${{inputs.configuration}}
30
+ name : Build-macOS-${{ inputs.architecture }} -${{inputs.configuration}}
28
31
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/
30
33
Result.Darwin.x64.${{inputs.configuration}}/ZEngine/tests/${{inputs.configuration}}/
31
34
!Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/**/Microsoft.CodeAnalysis.CSharp.resources.dll
32
35
!Result.Darwin.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net6.0/**/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
Original file line number Diff line number Diff line change 15
15
jobs :
16
16
deploy :
17
17
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' }}
19
19
steps :
20
20
- uses : actions/download-artifact@v4
21
21
with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # Run tests for macOS arm64
1
+ # Run tests for macOS
2
2
#
3
- name : macOS arm64 Test Workflow
3
+ name : macOS Test Workflow
4
4
5
5
on :
6
6
workflow_call :
7
7
inputs :
8
8
configuration :
9
9
type : string
10
10
default : ' Debug'
11
+ architecture :
12
+ type : string
13
+ default : ' x64'
11
14
12
15
jobs :
13
16
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' }}
16
19
steps :
17
20
- name : Checkout repository
18
21
uses : actions/checkout@v3
19
22
20
23
- uses : actions/download-artifact@v4
21
24
with :
22
- name : Build-macOS-arm64 -${{ inputs.configuration }}
25
+ name : Build-macOS-${{ inputs.architecture }} -${{ inputs.configuration }}
23
26
path : Result.Darwin.x64.${{ inputs.configuration }}
24
27
25
28
- name : Run Tests
Original file line number Diff line number Diff line change 8
8
matrix :
9
9
buildConfiguration : [Debug, Release]
10
10
architecture : [x64, arm64]
11
- uses : ./.github/workflows/job-cmakebuild-macOS-${{ matrix.architecture }} .yml
11
+ uses : ./.github/workflows/job-cmakebuild-macOS.yml
12
12
with :
13
13
configuration : ${{matrix.buildConfiguration}}
14
+ architecture : ${{ matrix.architecture }}
14
15
15
16
test :
16
17
needs : cmake-build
17
18
strategy :
18
19
matrix :
19
20
testConfiguration : [Debug, Release]
20
21
architecture : [x64, arm64]
21
- uses : ./.github/workflows/job-test-macOS-${{ matrix.architecture }} .yml
22
+ uses : ./.github/workflows/job-test-macOS.yml
22
23
with :
23
24
configuration : ${{matrix.testConfiguration}}
25
+ architecture : ${{ matrix.architecture }}
24
26
25
27
deploy :
26
28
needs : test
You can’t perform that action at this time.
0 commit comments