Skip to content

Commit 8a1efd9

Browse files
author
Ravbug
committed
Update workflow file
- fix deprecation warnings + add windows for ARM build
1 parent 634dcfd commit 8a1efd9

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/build.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout code
9-
uses: actions/checkout@v2
9+
uses: actions/checkout@v4
1010
with:
1111
submodules: true
1212
- name: Install Dependencies
@@ -23,7 +23,7 @@ jobs:
2323
cd build
2424
cmake --build . --config release --target install
2525
- name: Archive and upload artifacts
26-
uses: actions/upload-artifact@v2
26+
uses: actions/upload-artifact@v4
2727
with:
2828
name: UnityHubNative-Linux64
2929
path: build/Release/UnityHubNative.AppImage
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: macos-latest
3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737
with:
3838
submodules: true
3939
- name: Configure
@@ -50,30 +50,34 @@ jobs:
5050
cd build/release
5151
zip -r -9 UnityHubNative.zip UnityHubNative.app/
5252
- name: Upload artifacts
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: UnityHubNative-macOS
5656
path: build/release/UnityHubNative.zip
5757

5858
build-windows:
5959
name: Build App for Windows
6060
runs-on: windows-latest
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
arch: [x64, ARM64]
6165
steps:
6266
- name: Checkout code
63-
uses: actions/checkout@v2
67+
uses: actions/checkout@v4
6468
with:
6569
submodules: true
6670
- name: Configure
6771
run: |
6872
mkdir build
6973
cd build
70-
cmake -DCMAKE_BUILD_TYPE=Release .. ;
74+
cmake -A${{ matrix.arch }} -DCMAKE_BUILD_TYPE=Release .. ;
7175
- name: Build
7276
run: |
7377
cd build
7478
cmake --build . --config release --target install
7579
- name: Archive and upload artifacts
76-
uses: actions/upload-artifact@v2
80+
uses: actions/upload-artifact@v4
7781
with:
78-
name: UnityHubNative-win64
82+
name: UnityHubNative-win${{ matrix.arch }}
7983
path: build\release\UnityHubNative.exe

0 commit comments

Comments
 (0)