Skip to content

Commit 4747989

Browse files
committed
add github workflows
1 parent 16eecc5 commit 4747989

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/build-ubuntu.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build AddressablesTools Example Ubuntu
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install .NET Core
20+
uses: actions/setup-dotnet@v3
21+
with:
22+
dotnet-version: 8.0.x
23+
24+
- name: Restore
25+
run: dotnet restore
26+
27+
- name: Build
28+
run: dotnet build --configuration Release --no-restore
29+
30+
- name: Upload
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: addrtool-example-ubuntu
34+
path: Example/bin/Release/net8.0
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build AddressablesTools Example Windows
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-2022
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install .NET Core
20+
uses: actions/setup-dotnet@v3
21+
with:
22+
dotnet-version: 8.0.x
23+
24+
- name: Setup MSBuild.exe
25+
uses: microsoft/setup-msbuild@v1.1
26+
27+
- name: Build
28+
run: msbuild AddressablesTools.sln /restore /p:Configuration=Release
29+
30+
- name: Upload
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: addrtool-example-windows
34+
path: Example/bin/Release/net8.0

0 commit comments

Comments
 (0)