From d7d6ae2404f41fee809f3550fb75df011ae8ed57 Mon Sep 17 00:00:00 2001 From: Kieron Lanning Date: Thu, 3 Sep 2026 10:47:53 +0100 Subject: [PATCH] build: fix the sample build --- .github/workflows/pr.yml | 7 ++++++- .github/workflows/release.yml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 137ef167..e1c5ba67 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ on: branches: [main] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -42,6 +42,11 @@ jobs: with: dotnet-version: "10.0.x" + # This is so the analyzer projects can be used in the sample app projects. + # The analyzer projects are not referenced by the sample app projects, the assemblies are, so they need to be built first. + - name: Run pipeline build + run: dotnet run --project build/PipelineCLI/PipelineCLI.csproj --configuration Release -- --Build:RunTests=false --Release:Mode=None + - name: Build SampleApp run: dotnet build samples/SampleApp/SampleApp.slnx --configuration Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b50fce6..1396ecfe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,8 +5,8 @@ on: branches: [main] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: release: