From 1bd56e1fd09569d73e4409d36ceda2ce22756158 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Wed, 22 May 2024 22:33:03 +0200 Subject: [PATCH] (#64) update CI fixes builds on GitHub actions --- .github/workflows/build.yml | 16 ++++++++++------ .github/workflows/codeql-analysis.yml | 15 +++++++++------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa1b7a1..ded3171 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ windows-2022, ubuntu-22.04, macos-12 ] + os: [ windows-2022 ] env: AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }} @@ -61,12 +61,16 @@ jobs: with: path: tools key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} + #- name: Build project + # uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1 + # with: + # script-path: recipe.cake + # target: CI + # cake-version: tool-manifest - name: Build project - uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1 - with: - script-path: recipe.cake - target: CI - cake-version: 0.32.1 + run: | + ./build.ps1 -Target DotNetCore-Build + - name: Upload Issues uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9d41c74..8e63172 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,7 +18,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-22.04 + runs-on: windows-2022 strategy: fail-fast: false @@ -56,12 +56,15 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main + #- name: Build project + # uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1 + # with: + # script-path: recipe.cake + # target: DotNetCore-Build + # cake-version: tool-manifest - name: Build project - uses: cake-build/cake-action@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b # v1 - with: - script-path: recipe.cake - target: DotNetCore-Build - cake-version: 0.32.1 + run: | + ./build.ps1 -Target DotNetCore-Build - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@1b1aada464948af03b950897e5eb522f92603cc2 # v3