Skip to content

Commit 15be863

Browse files
committed
Update actions
1 parent f59429e commit 15be863

File tree

1 file changed

+129
-129
lines changed

1 file changed

+129
-129
lines changed

.github/workflows/main.yml

Lines changed: 129 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,134 +1,134 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- release
4+
push:
5+
branches:
6+
- master
7+
- release
88

99
jobs:
10-
#This job builds the main non-platform depent packages
11-
build-core:
12-
name: "Build-UWB-Main"
13-
runs-on: ubuntu-24.04
14-
steps:
15-
# Checkout Repo
16-
- uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 0
19-
20-
#Setup the Environment
21-
- uses: actions/setup-dotnet@v4
22-
name: Setup .NET
23-
with:
24-
dotnet-version: "8.0.x"
25-
26-
# Build shared
27-
- name: Build Shared
28-
run: python build_shared.py
29-
working-directory: src/DevScripts/
30-
31-
# Restore Unity's cache
32-
- name: Unity Cache
33-
uses: actions/cache@v4
34-
with:
35-
path: src/UnityWebBrowser.UnityProject/Library
36-
key: Cache-Unity
37-
38-
# Build the Unity project
39-
- name: Build Unity Project
40-
uses: game-ci/unity-builder@v4
41-
env:
42-
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
43-
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
44-
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
45-
with:
46-
projectPath: src/UnityWebBrowser.UnityProject/
47-
targetPlatform: StandaloneLinux64
48-
buildsPath: src/UnityWebBrowser.UnityProject/Builds
49-
versioning: Tag
50-
51-
# Create an output directory for artifacts
52-
- name: Create Artifacts Staging Directory
53-
shell: pwsh
54-
run: mkdir ${{ github.workspace }}/UWBStaging/
55-
56-
# Pack UWB Core
57-
- name: Pack Core Package
58-
shell: pwsh
59-
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
60-
working-directory: src/Packages/UnityWebBrowser
61-
62-
# Pack UWB Pipes Communication
63-
- name: Pack Pipes Communication Package
64-
shell: pwsh
65-
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
66-
working-directory: src/Packages/UnityWebBrowser.Communication.Pipes
67-
68-
# Upload Packed Packages
69-
- name: Upload Artifacts
70-
uses: actions/upload-artifact@v4
71-
with:
72-
name: UWB-Core
73-
path: ${{ github.workspace }}/UWBStaging/*.tgz
74-
75-
build-engine-cef:
76-
strategy:
77-
matrix:
78-
os: [windows-2022, ubuntu-22.04]
79-
include:
80-
- os: windows-2022
81-
build: windows64
82-
package: Win-x64
83-
- os: ubuntu-22.04
84-
build: linux64
85-
package: Linux-x64
86-
- os: macos-14
87-
build: macosx64
88-
package: MacOS-x64
89-
- os: macos-14
90-
build: macosarm64
91-
package: MacOS-arm64
92-
93-
runs-on: ${{ matrix.os }}
94-
name: Build-UWB-Engine-CEF-${{ matrix.package }}
95-
steps:
96-
# Checkout Repo
97-
- uses: actions/checkout@v4
98-
with:
99-
submodules: true
100-
fetch-depth: 0
101-
102-
# Setup the Environment
103-
- uses: actions/setup-dotnet@v4
104-
name: Setup .NET
105-
with:
106-
dotnet-version: "8.0.x"
107-
108-
# Download CEF
109-
- name: Download CEF ${{ matrix.build }}
110-
run: python download_cef_${{ matrix.build }}.py
111-
working-directory: src/DevScripts/
112-
113-
# Build CEF Engine
114-
- name: Build CEF Engine ${{ matrix.build }}
115-
run: python build_cef_${{ matrix.build }}.py
116-
working-directory: src/DevScripts/
117-
118-
# Create an output directory for artifacts
119-
- name: Create Artifacts Staging Directory
120-
shell: pwsh
121-
run: mkdir ${{ github.workspace }}/UWBStaging/
122-
123-
# Pack UWB Core
124-
- name: Pack CEF Engine ${{ matrix.package }} Package
125-
shell: pwsh
126-
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
127-
working-directory: src/Packages/UnityWebBrowser.Engine.Cef.${{ matrix.package }}
128-
129-
# Upload Packed Packages
130-
- name: Upload Artifacts
131-
uses: actions/upload-artifact@v4
132-
with:
133-
name: UWB-Engine-CEF-${{ matrix.package }}
134-
path: ${{ github.workspace }}/UWBStaging/*.tgz
10+
#This job builds the main non-platform depent packages
11+
build-core:
12+
name: "Build-UWB-Main"
13+
runs-on: ubuntu-24.04
14+
steps:
15+
# Checkout Repo
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
20+
#Setup the Environment
21+
- uses: actions/setup-dotnet@v5
22+
name: Setup .NET
23+
with:
24+
dotnet-version: "10.x"
25+
26+
# Build shared
27+
- name: Build Shared
28+
run: python build_shared.py
29+
working-directory: src/DevScripts/
30+
31+
# Restore Unity's cache
32+
- name: Unity Cache
33+
uses: actions/cache@v5
34+
with:
35+
path: src/UnityWebBrowser.UnityProject/Library
36+
key: Cache-Unity
37+
38+
# Build the Unity project
39+
- name: Build Unity Project
40+
uses: game-ci/unity-builder@v4
41+
env:
42+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
43+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
44+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
45+
with:
46+
projectPath: src/UnityWebBrowser.UnityProject/
47+
targetPlatform: StandaloneLinux64
48+
buildsPath: src/UnityWebBrowser.UnityProject/Builds
49+
versioning: Tag
50+
51+
# Create an output directory for artifacts
52+
- name: Create Artifacts Staging Directory
53+
shell: pwsh
54+
run: mkdir ${{ github.workspace }}/UWBStaging/
55+
56+
# Pack UWB Core
57+
- name: Pack Core Package
58+
shell: pwsh
59+
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
60+
working-directory: src/Packages/UnityWebBrowser
61+
62+
# Pack UWB Pipes Communication
63+
- name: Pack Pipes Communication Package
64+
shell: pwsh
65+
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
66+
working-directory: src/Packages/UnityWebBrowser.Communication.Pipes
67+
68+
# Upload Packed Packages
69+
- name: Upload Artifacts
70+
uses: actions/upload-artifact@v6
71+
with:
72+
name: UWB-Core
73+
path: ${{ github.workspace }}/UWBStaging/*.tgz
74+
75+
build-engine-cef:
76+
strategy:
77+
matrix:
78+
os: [windows-2022, ubuntu-22.04]
79+
include:
80+
- os: windows-2022
81+
build: windows64
82+
package: Win-x64
83+
- os: ubuntu-22.04
84+
build: linux64
85+
package: Linux-x64
86+
- os: macos-14
87+
build: macosx64
88+
package: MacOS-x64
89+
- os: macos-14
90+
build: macosarm64
91+
package: MacOS-arm64
92+
93+
runs-on: ${{ matrix.os }}
94+
name: Build-UWB-Engine-CEF-${{ matrix.package }}
95+
steps:
96+
# Checkout Repo
97+
- uses: actions/checkout@v6
98+
with:
99+
submodules: true
100+
fetch-depth: 0
101+
102+
# Setup the Environment
103+
- uses: actions/setup-dotnet@v5
104+
name: Setup .NET
105+
with:
106+
dotnet-version: "10.x"
107+
108+
# Download CEF
109+
- name: Download CEF ${{ matrix.build }}
110+
run: python download_cef_${{ matrix.build }}.py
111+
working-directory: src/DevScripts/
112+
113+
# Build CEF Engine
114+
- name: Build CEF Engine ${{ matrix.build }}
115+
run: python build_cef_${{ matrix.build }}.py
116+
working-directory: src/DevScripts/
117+
118+
# Create an output directory for artifacts
119+
- name: Create Artifacts Staging Directory
120+
shell: pwsh
121+
run: mkdir ${{ github.workspace }}/UWBStaging/
122+
123+
# Pack UWB Core
124+
- name: Pack CEF Engine ${{ matrix.package }} Package
125+
shell: pwsh
126+
run: npm pack --pack-destination ${{ github.workspace }}/UWBStaging/
127+
working-directory: src/Packages/UnityWebBrowser.Engine.Cef.${{ matrix.package }}
128+
129+
# Upload Packed Packages
130+
- name: Upload Artifacts
131+
uses: actions/upload-artifact@v6
132+
with:
133+
name: UWB-Engine-CEF-${{ matrix.package }}
134+
path: ${{ github.workspace }}/UWBStaging/*.tgz

0 commit comments

Comments
 (0)