Skip to content

Commit 066f10f

Browse files
committed
ci: give generation its own job ahead of the checks
1 parent a924667 commit 066f10f

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ on:
1414
name: CI
1515

1616
jobs:
17-
# The solution covers the generated client, the wrappers and the examples, so
18-
# a spec change that breaks any of them fails here.
19-
build:
17+
generate:
2018
runs-on: ubuntu-latest
2119
steps:
2220
- uses: actions/checkout@v7
@@ -30,10 +28,24 @@ jobs:
3028
with:
3129
bundle: openapi-legacy.yaml
3230

31+
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
32+
33+
- uses: actions/upload-artifact@v7
34+
with:
35+
name: generated-csharp
36+
path: .
37+
include-hidden-files: true
38+
39+
build:
40+
needs: generate
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/download-artifact@v8
44+
with:
45+
name: generated-csharp
46+
3347
- uses: actions/setup-dotnet@v6
3448
with:
3549
dotnet-version: '8.0.x'
3650

37-
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
38-
3951
- run: dotnet build VRChat.API.sln --configuration Release

0 commit comments

Comments
 (0)