From a201cf482447daaf1cd0d6b33defbcdd8213aea9 Mon Sep 17 00:00:00 2001 From: Patrick Stevens <3138005+Smaug123@users.noreply.github.com> Date: Fri, 7 Jun 2024 19:37:26 +0100 Subject: [PATCH] Fix windows build (#1) --- .github/workflows/dotnet.yaml | 8 +++++++- WoofWare.DotnetRuntimeLocator/version.json | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index 6abf99e..0c8fb88 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -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." diff --git a/WoofWare.DotnetRuntimeLocator/version.json b/WoofWare.DotnetRuntimeLocator/version.json index bb9aa91..11f1df3 100644 --- a/WoofWare.DotnetRuntimeLocator/version.json +++ b/WoofWare.DotnetRuntimeLocator/version.json @@ -1,10 +1,10 @@ { "version": "0.1", - "publicReleaseRefSpec": null, + "publicReleaseRefSpec": ["^refs/heads/main$"], "pathFilters": [ "^Test/", ":/WoofWare.DotnetRuntimeLocator", ":/Directory.Build.props", ":/README.md" ] -} \ No newline at end of file +}