Skip to content

Commit 2446494

Browse files
committed
ci: use the shared SDK specification action
1 parent 8355ebe commit 2446494

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
branches:
4+
- '**'
5+
pull_request:
6+
workflow_call:
7+
inputs:
8+
spec-artifact:
9+
description: >-
10+
Artifact holding the bundled specification. Only reachable when the
11+
caller shares this run; when empty the latest published one is used.
12+
required: false
13+
type: string
14+
default: ''
15+
ref:
16+
description: Ref of this repository to build.
17+
required: false
18+
type: string
19+
default: main
20+
21+
name: Build
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: vrchatapi/specification/.github/actions/sdk-spec@ci/modernise-actions
28+
with:
29+
repository: vrchatapi/vrchatapi-java
30+
ref: ${{ inputs.ref || github.ref }}
31+
generator-version: 7.24.0
32+
spec-artifact: ${{ inputs.spec-artifact }}
33+
34+
- uses: actions/setup-java@v5.7.0
35+
with:
36+
java-version: '17'
37+
distribution: temurin
38+
39+
- run: bash ./generate.sh openapi.json
40+
41+
- run: mvn -B -ntp compile

0 commit comments

Comments
 (0)