-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jongwoo Han <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
- 'docs/**' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
- macos-13 | ||
java-version: | ||
- 8 | ||
- 11 | ||
- 17 | ||
- 21 | ||
- 23 | ||
# macos-latest drops support for java 8 temurin. Run java 8 on macos-13. Run java 11, 17, 21, 23 on macos-latest. | ||
exclude: | ||
- os: macos-latest | ||
java-version: 8 | ||
- os: macos-13 | ||
java-version: 11 | ||
- os: macos-13 | ||
java-version: 17 | ||
- os: macos-13 | ||
java-version: 21 | ||
- os: macos-13 | ||
java-version: 23 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Java ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java-version }} | ||
cache: 'maven' | ||
|
||
# Generate GraphQL client codes | ||
- name: Download additional sources | ||
run: mvn generate-sources | ||
|
||
- name: Build with Maven | ||
run: > | ||
mvn -B package | ||
-DskipTests |