Skip to content
Merged
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
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ on:

jobs:
build:
runs-on: windows-latest
name: build (${{ matrix.rid }})
runs-on: ${{ matrix.runner }}

strategy:
fail-fast: false
matrix:
include:
- rid: win-x64
runner: windows-latest
- rid: win-arm64
runner: windows-11-arm

steps:
- name: Checkout
Expand All @@ -21,16 +31,16 @@ jobs:
dotnet-version: '8.0.x'

- name: Restore
run: dotnet restore
run: dotnet restore -r ${{ matrix.rid }}

- name: Build (Release)
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore -r ${{ matrix.rid }}

- name: Publish (win-x64, single file)
run: dotnet publish WinLens.csproj -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -o publish
- name: Publish (${{ matrix.rid }}, single file)
run: dotnet publish WinLens.csproj -c Release -r ${{ matrix.rid }} --self-contained false -p:PublishSingleFile=true -o publish

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: WinLens-win-x64
name: WinLens-${{ matrix.rid }}
path: publish/WinLens.exe
Loading