Merge pull request #352 from Panxuc/dev #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [dev, main, master] | |
pull_request: | |
branches: [dev, main, master] | |
jobs: | |
dotnet-build-logic: | |
if: true | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup dotnet-script | |
run: dotnet tool install --global dotnet-script | |
- name: Pre-Process1 | |
run: dotnet script .github/preProcess/MauiEnvConfig.csx | |
- name: Install Workloads | |
run: dotnet workload install maui-windows | |
- name: Build Proto | |
run: dotnet build "./dependency/proto/Protos.csproj" -c Release | |
- name: Build Logic | |
run: dotnet build "./logic/logic.sln" -c Release | |
dotnet-build-install: | |
if: true | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup dotnet-script | |
run: dotnet tool install --global dotnet-script | |
- name: Pre-Process1 | |
run: dotnet script .github/preProcess/MauiEnvConfig.csx | |
- name: Install Workloads | |
run: dotnet workload install maui-windows | |
- name: Build Installer | |
run: dotnet build "./installer/installer.sln" -c Release | |
dotnet-build-launcher: | |
if: true | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build Launcher | |
run: dotnet build "./launcher/launcher.sln" -c Release |