Skip to content

Commit fee2562

Browse files
Refactor build workflow
- Removing `-latest` from the job names. - Remove redundant item from matrix. - Add job timeout.
1 parent c6cc986 commit fee2562

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/build.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ on:
1313

1414
env:
1515
DOTNET_CLI_TELEMETRY_OPTOUT: true
16-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
16+
DOTNET_NOLOGO: true
1717
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
18+
FORCE_COLOR: 3
1819
NUGET_XMLDOC_MODE: skip
1920
TERM: xterm
2021

@@ -23,8 +24,9 @@ permissions:
2324

2425
jobs:
2526
build:
26-
name: ${{ matrix.os }}
27-
runs-on: ${{ matrix.os }}
27+
name: ${{ matrix.os-name }}
28+
runs-on: ${{ matrix.runner }}
29+
timeout-minutes: 20
2830

2931
outputs:
3032
dotnet-sdk-version: ${{ steps.setup-dotnet.outputs.dotnet-version }}
@@ -39,15 +41,14 @@ jobs:
3941

4042
strategy:
4143
fail-fast: false
42-
matrix:
43-
os: [ macos-latest, ubuntu-latest, windows-latest ]
44+
matrix:
4445
include:
45-
- os: macos-latest
46-
os-name: macos
47-
- os: ubuntu-latest
48-
os-name: linux
49-
- os: windows-latest
50-
os-name: windows
46+
- os-name: macos
47+
runner: macos-latest
48+
- os-name: linux
49+
runner: ubuntu-latest
50+
- os-name: windows
51+
runner: windows-latest
5152

5253
steps:
5354

0 commit comments

Comments
 (0)