Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build UnityDataTool

on:
workflow_dispatch:
inputs:
environment:
description: 'Build environment'
default: 'release'
required: true
type: choice
options:
- debug
- release
push:
branches:
- main

env:
environment: ${{ inputs.environment || 'release' }}

jobs:
build:
strategy:
matrix:
os: [windows, macos]
arch: [x64, arm64]
exclude:
- os: windows
arch: arm64
- os: macos
arch: x64

runs-on: ${{ matrix.os }}-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Publish UnityDataTool (${{ matrix.os }}-${{ matrix.arch }}-${{ env.environment }})
run: >
dotnet publish UnityDataTool
-c ${{ env.environment }}
-a ${{ matrix.arch }}
-p:PublishSingleFile=true
-p:UseAppHost=true
-o publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: UnityDataTool-${{ matrix.os }}-${{ matrix.arch }}-${{ env.environment }}
path: publish/${{ matrix.os }}/${{ matrix.arch }}-${{ env.environment }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[Tt]emp/
[Ll]og/
[Ll]ogs/
[Pp]ublish/

**/*.csproj.user
**/*.suo
Expand Down