-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccbc81c
commit 87312b3
Showing
1 changed file
with
11 additions
and
66 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,22 @@ | ||
name: .NET Build and Test on Windows | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_x64: | ||
build: | ||
runs-on: windows-latest | ||
name: Build and Test for Windows x64 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build for Windows x64 | ||
run: dotnet build --configuration Release --runtime win-x64 | ||
strategy: | ||
matrix: | ||
architecture: [x64, x86, arm64] | ||
|
||
- name: Publish single-file for Windows x64 | ||
run: dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained false | ||
|
||
- name: Test execution | ||
run: .\bin\Release\net8.0-windows\win-x64\publish\FriendlyPaletteGenerator.exe | ||
shell: cmd | ||
|
||
build_x86: | ||
runs-on: windows-latest | ||
name: Build and Test for Windows x86 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build for Windows x86 | ||
run: dotnet build --configuration Release --runtime win-x86 | ||
|
||
- name: Publish single-file for Windows x86 | ||
run: dotnet publish -r win-x86 -p:PublishSingleFile=true --self-contained false | ||
|
||
build_arm: | ||
runs-on: windows-latest | ||
name: Build and Test for Windows ARM64 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build for Windows ARM64 | ||
run: dotnet build --configuration Release --runtime win-arm64 | ||
|
||
- name: Publish single-file for Windows ARM64 | ||
run: dotnet publish -r win-arm64 -p:PublishSingleFile=true --self-contained false | ||
- name: Build project | ||
run: dotnet build FriendlyPaletteGenerator/FriendlyPaletteGenerator.csproj --configuration Release -r win-${{ matrix.architecture }} --self-contained false |