Skip to content

Commit 78882cd

Browse files
committed
2 parents 89688da + d3d62b6 commit 78882cd

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515

1616
jobs:
1717
test:
18-
runs-on: ${{ matrix.os }}
18+
runs-on: ${{ matrix.os }}-latest
1919
strategy:
2020
fail-fast: false
2121
matrix:
@@ -24,30 +24,27 @@ jobs:
2424
dotnet: ["8.0", "9.0", "10.0"]
2525
include:
2626
- target: x86_64-unknown-linux-gnu
27-
os: ubuntu-latest
28-
platform: linux
27+
os: ubuntu
2928
arch: x64
3029
- target: x86_64-pc-windows-msvc
31-
os: windows-latest
32-
platform: windows
30+
os: windows
3331
arch: x64
3432
- target: i686-pc-windows-msvc
35-
os: windows-latest
36-
platform: windows
33+
os: windows
3734
arch: x86
3835
- target: aarch64-apple-darwin
39-
os: macos-latest
40-
platform: linux
36+
os: macos
4137
arch: arm64
4238
env:
4339
NETCOREHOST_TEST_NETCORE_VERSION: net${{ matrix.dotnet }}
4440
steps:
4541
- uses: actions/checkout@v4
4642

43+
- name: Uninstall .NET SDKs
44+
run: ./.github/scripts/uninstall-dotnet-${{ matrix.os }}
45+
4746
- name: Install .NET SDK ${{ matrix.dotnet }}
48-
run: |
49-
chmod +x ./.github/scripts/install-dotnet-${{ matrix.platform }}
50-
./.github/scripts/install-dotnet-${{ matrix.platform }} ${{ matrix.dotnet }} ${{ matrix.arch }}
47+
run: ./.github/scripts/install-dotnet-${{ matrix.os }} ${{ matrix.dotnet }} ${{ matrix.arch }}
5148

5249
- name: Check .NET Installation
5350
run: dotnet --info
@@ -112,7 +109,7 @@ jobs:
112109
run: cargo run --example ${{ matrix.example }}
113110

114111
documentation:
115-
runs-on: ${{ matrix.os }}
112+
runs-on: ${{ matrix.os }}-latest
116113
strategy:
117114
matrix:
118115
include:
@@ -134,7 +131,7 @@ jobs:
134131
run: cargo deadlinks
135132

136133
clippy:
137-
runs-on: ${{ matrix.os }}
134+
runs-on: ${{ matrix.os }}-latest
138135
strategy:
139136
matrix:
140137
include:
@@ -153,7 +150,7 @@ jobs:
153150
run: cargo clippy --all-features
154151

155152
fmt:
156-
runs-on: ${{ matrix.os }}
153+
runs-on: ${{ matrix.os }}-latest
157154
strategy:
158155
matrix:
159156
include:

0 commit comments

Comments
 (0)