6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Checkout code
9
- uses : actions/checkout@v2
9
+ uses : actions/checkout@v4
10
10
with :
11
11
submodules : true
12
12
- name : Install Dependencies
23
23
cd build
24
24
cmake --build . --config release --target install
25
25
- name : Archive and upload artifacts
26
- uses : actions/upload-artifact@v2
26
+ uses : actions/upload-artifact@v4
27
27
with :
28
28
name : UnityHubNative-Linux64
29
29
path : build/Release/UnityHubNative.AppImage
33
33
runs-on : macos-latest
34
34
steps :
35
35
- name : Checkout code
36
- uses : actions/checkout@v2
36
+ uses : actions/checkout@v4
37
37
with :
38
38
submodules : true
39
39
- name : Configure
@@ -50,30 +50,34 @@ jobs:
50
50
cd build/release
51
51
zip -r -9 UnityHubNative.zip UnityHubNative.app/
52
52
- name : Upload artifacts
53
- uses : actions/upload-artifact@v2
53
+ uses : actions/upload-artifact@v4
54
54
with :
55
55
name : UnityHubNative-macOS
56
56
path : build/release/UnityHubNative.zip
57
57
58
58
build-windows :
59
59
name : Build App for Windows
60
60
runs-on : windows-latest
61
+ strategy :
62
+ fail-fast : false
63
+ matrix :
64
+ arch : [x64, ARM64]
61
65
steps :
62
66
- name : Checkout code
63
- uses : actions/checkout@v2
67
+ uses : actions/checkout@v4
64
68
with :
65
69
submodules : true
66
70
- name : Configure
67
71
run : |
68
72
mkdir build
69
73
cd build
70
- cmake -DCMAKE_BUILD_TYPE=Release .. ;
74
+ cmake -A${{ matrix.arch }} - DCMAKE_BUILD_TYPE=Release .. ;
71
75
- name : Build
72
76
run : |
73
77
cd build
74
78
cmake --build . --config release --target install
75
79
- name : Archive and upload artifacts
76
- uses : actions/upload-artifact@v2
80
+ uses : actions/upload-artifact@v4
77
81
with :
78
- name : UnityHubNative-win64
82
+ name : UnityHubNative-win${{ matrix.arch }}
79
83
path : build\release\UnityHubNative.exe
0 commit comments