Fix windows build (#1)

This commit is contained in:
Patrick Stevens
2024-06-07 19:37:26 +01:00
committed by GitHub
parent b1d65b33d8
commit a201cf4824
2 changed files with 9 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ jobs:
run: dotnet restore
- name: Test
run: dotnet test
- name: Publish
run: dotnet publish Example
- name: Run example
run: ".\\Example\\bin\\Release\\net8.0\\win-x64\\Example.exe"
@@ -55,6 +57,10 @@ jobs:
run: nix develop --command dotnet build --no-restore --configuration ${{matrix.config}}
- name: Test
run: nix develop --command dotnet test --no-build --verbosity normal --configuration ${{matrix.config}}
- name: Publish example
run: nix develop --command dotnet publish --no-build --verbosity normal --configuration ${{matrix.config}} Example
- name: Run example self-contained
run: "./Example/bin/${{matrix.config}}/*/*/Example"
build-nix:
runs-on: ubuntu-latest
@@ -173,7 +179,7 @@ jobs:
run: sh .github/workflows/tag.sh
all-required-checks-complete:
needs: [check-dotnet-format, check-nix-format, build, build-nix, linkcheck, flake-check, nuget-pack, expected-pack, github-release-dry-run]
needs: [check-dotnet-format, check-nix-format, build, build-nix, linkcheck, flake-check, nuget-pack, expected-pack, github-release-dry-run, build-windows]
runs-on: ubuntu-latest
steps:
- run: echo "All required checks complete."

View File

@@ -1,6 +1,6 @@
{
"version": "0.1",
"publicReleaseRefSpec": null,
"publicReleaseRefSpec": ["^refs/heads/main$"],
"pathFilters": [
"^Test/",
":/WoofWare.DotnetRuntimeLocator",