Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions continuous build #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/build.yaml
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