Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeRT98 committed Oct 23, 2024
1 parent ccbc81c commit 87312b3
Showing 1 changed file with 11 additions and 66 deletions.
77 changes: 11 additions & 66 deletions .github/workflows/ci-windows.yml
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

0 comments on commit 87312b3

Please sign in to comment.