Skip to content

Commit 76c9809

Browse files
committed
chore: ubuntu builds
1 parent acccc39 commit 76c9809

File tree

1 file changed

+10
-40
lines changed

1 file changed

+10
-40
lines changed

.github/workflows/test-build.yml

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches: [main]
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
1115
if: github.event.pull_request.head.repo.fork == false
@@ -40,44 +44,9 @@ jobs:
4044
with:
4145
name: Coverage results
4246
path: ${{ steps.passportTest.outputs.coveragePath }}
43-
windows-build:
44-
name: Windows Build for ${{ matrix.targetPlatform }}
45-
runs-on: windows-2022
46-
strategy:
47-
fail-fast: false
48-
matrix:
49-
targetPlatform:
50-
- Android
51-
- StandaloneWindows64
52-
steps:
53-
- uses: actions/checkout@v4
54-
with:
55-
fetch-depth: 0
56-
lfs: true
57-
- uses: actions/cache@v3
58-
with:
59-
path: Library
60-
key:
61-
Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
62-
restore-keys: |
63-
Library-${{ matrix.targetPlatform }}
64-
Library-
65-
- uses: game-ci/unity-builder@v4
66-
env:
67-
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
68-
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
69-
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
70-
with:
71-
unityVersion: 2021.3.26f1
72-
targetPlatform: ${{ matrix.targetPlatform }}
73-
projectPath: './src/Packages/Passport/Samples~/sample'
74-
- uses: actions/upload-artifact@v3
75-
with:
76-
name: Build-windows-${{ matrix.targetPlatform }}
77-
path: build
78-
macos-build:
79-
name: macOS Build for ${{ matrix.targetPlatform }}
80-
runs-on: macos-latest
47+
build:
48+
name: Build for ${{ matrix.targetPlatform }}
49+
runs-on: ubuntu-latest-8-cores
8150
strategy:
8251
fail-fast: false
8352
matrix:
@@ -86,6 +55,7 @@ jobs:
8655
- Android
8756
- WebGL
8857
- StandaloneOSX
58+
- StandaloneWindows64
8959
steps:
9060
- uses: actions/checkout@v4
9161
with:
@@ -110,5 +80,5 @@ jobs:
11080
projectPath: './src/Packages/Passport/Samples~/sample'
11181
- uses: actions/upload-artifact@v3
11282
with:
113-
name: Build-macos-${{ matrix.targetPlatform }}
114-
path: build
83+
name: Build-${{ matrix.targetPlatform }}
84+
path: build

0 commit comments

Comments
 (0)