Skip to content

Commit 2450a31

Browse files
committed
Revert the job-splitting
Revert the job-splitting as uploading and downloading the build artifacts take several minutes to complete.
1 parent fea7a13 commit 2450a31

File tree

1 file changed

+6
-46
lines changed

1 file changed

+6
-46
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [master]
88

99
jobs:
10-
gitversion:
10+
build:
1111
runs-on: ubuntu-latest
1212

1313
outputs:
@@ -25,14 +25,7 @@ jobs:
2525
- id: gitversion
2626
uses: gittools/actions/gitversion/[email protected]
2727

28-
build:
29-
runs-on: ubuntu-latest
30-
31-
steps:
32-
- uses: actions/checkout@v2
33-
34-
- name: Setup .NET Core
35-
uses: actions/setup-dotnet@v1
28+
- uses: actions/setup-dotnet@v1
3629
with:
3730
dotnet-version: 2.1.401
3831

@@ -44,29 +37,11 @@ jobs:
4437
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
4538
restore-keys: ${{ runner.os }}-nuget-
4639

47-
- name: Install dependencies
48-
run: dotnet restore
49-
50-
- name: Build
51-
run: dotnet build --configuration Release --no-restore
52-
53-
- uses: actions/upload-artifact@v2
54-
with:
55-
name: build
56-
path: .
57-
58-
test:
59-
runs-on: ubuntu-latest
60-
needs: build
40+
- run: dotnet restore
6141

62-
steps:
63-
- uses: actions/download-artifact@v2
64-
with:
65-
name: build
66-
path: .
42+
- run: dotnet build --configuration Release --no-restore
6743

68-
- name: Test
69-
run: |
44+
- run: |
7045
dotnet test \
7146
--configuration Release \
7247
--no-build \
@@ -80,28 +55,13 @@ jobs:
8055
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
8156
run: bash <(curl -s https://codecov.io/bash)
8257

83-
nuget-pack:
84-
runs-on: ubuntu-latest
85-
needs: [build, gitversion]
86-
87-
steps:
88-
- uses: actions/download-artifact@v2
89-
with:
90-
name: build
91-
path: .
92-
93-
- name: Setup .NET Core
94-
uses: actions/setup-dotnet@v1
95-
with:
96-
dotnet-version: 2.1.401
97-
9858
- name: NuGet Pack
9959
run: |
10060
dotnet pack \
10161
--include-source \
10262
--no-build \
10363
--no-restore \
104-
-p:PackageVersion="${{ needs.gitversion.outputs.fullSemVer }}" \
64+
-p:PackageVersion="${{ steps.gitversion.outputs.fullSemVer }}" \
10565
src/json-ld.net/json-ld.net.csproj \
10666
--output nugets/
10767

0 commit comments

Comments
 (0)