From 8297943214facc7a67367734264e2152a6a54fca Mon Sep 17 00:00:00 2001 From: KevinB <67744786+KevinBTech@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:23:10 +0200 Subject: [PATCH] ci: simplify tests on windows and unix --- .github/workflows/build.yml | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1a2872..c460118 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,20 +4,19 @@ on: push: jobs: - test-nix: - name: Test on *NIX + build: + name: Build timeout-minutes: 30 strategy: matrix: os: - "ubuntu-24.04" + - "windows-2022" dotnet-version: - "net8.0" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - with: - submodules: recursive - name: Set up .NET uses: actions/setup-dotnet@v4 @@ -40,32 +39,4 @@ jobs: run: | dotnet build -f ${{ matrix.dotnet-version }} --no-restore - test-windows: - name: Test on Windows - timeout-minutes: 30 - strategy: - matrix: - dotnet-version: - - "net8.0" - runs-on: "windows-2022" - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Set up .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 8.0.x - - - uses: actions/cache@v4 - with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} - restore-keys: | - ${{ runner.os }}-nuget- - - - name: Install dependencies - run: | - dotnet restore + \ No newline at end of file