Skip to content

Commit 6f1df5e

Browse files
committed
Add automated build via github actions
1 parent fbb0f72 commit 6f1df5e

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/.build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build UnityDataTool
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}-latest
8+
9+
strategy:
10+
matrix:
11+
os: [windows, macos]
12+
arch: [x64, arm64]
13+
environment: [debug, release]
14+
exclude:
15+
- os: windows
16+
arch: arm64
17+
- os: macos
18+
arch: x64
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup .NET
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: 9.0.x
28+
29+
- name: Publish UnityDataTool (${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.environment }})
30+
run: >
31+
dotnet publish UnityDataTool
32+
-c Release
33+
-a ${{ matrix.arch }}
34+
-p:PublishSingleFile=true
35+
-p:UseAppHost=true
36+
-o publish/${{ matrix.arch }}
37+
38+
- name: Upload artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: UnityDataTool-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.environment }}
42+
path: publish/${{ matrix.os }}/${{ matrix.arch }}-${{ matrix.environment }}

0 commit comments

Comments
 (0)