Skip to content

Commit

Permalink
ci: simplify tests on windows and unix
Browse files Browse the repository at this point in the history
  • Loading branch information
kjbtech committed Jul 25, 2024
1 parent 1a5693e commit 96d26d8
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 96d26d8

Please sign in to comment.