From 0676a8385bf784fc13147c6add235d16ee7f1688 Mon Sep 17 00:00:00 2001 From: Martin Renner Date: Thu, 12 Sep 2024 22:47:19 +0200 Subject: [PATCH] CI build on Windows is very slow, switching back to Linux (without Installer) --- .github/workflows/codeql.yml | 13 +++++++------ .github/workflows/dotnet.yml | 15 ++++++++++----- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2f3498a..02e4e4d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,7 +23,7 @@ on: jobs: analyze: name: Analyze - runs-on: windows-latest + runs-on: ubuntu-latest permissions: actions: read contents: read @@ -59,8 +59,8 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # - name: Autobuild + # uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -68,9 +68,10 @@ jobs: # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + - name: Build + run: | + dotnet build --no-restore StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj + dotnet build --no-restore StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 44783a9..401a3e8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,7 +1,7 @@ # This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: .NET +name: .NET Build and Test on: push: @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -23,8 +23,13 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore + run: | + dotnet restore StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj + dotnet restore StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj - name: Build - run: dotnet build --no-restore + run: | + dotnet build --no-restore StreamDeckSimHub.Plugin/StreamDeckSimHub.Plugin.csproj + dotnet build --no-restore StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj - name: Test - run: dotnet test --no-build --verbosity normal + run: | + dotnet test --no-build --verbosity normal StreamDeckSimHub.PluginTests/StreamDeckSimHub.PluginTests.csproj