Skip to content

Commit

Permalink
chore: Convert from CircleCI to Github Actions
Browse files Browse the repository at this point in the history
* Also add builds for Java 11 and Java 17

Fixes #743
Relates #658

Signed-off-by: Harold Dost <[email protected]>
  • Loading branch information
hdost committed Dec 23, 2021
1 parent ec6def4 commit 7e49d60
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .circleci/config.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "PR Build"
on:
pull_request:
branches:
- master
- main

jobs:
build:
name: Build
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
java-version:
- 8
- 11
# - 17 Until Java 6 is not targeted this won't work
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '${{ matrix.java-version }}'
distribution: 'temurin'
- name: Caching
uses: actions/cache@v2
with:
path: ~/.m2
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}
- name: Build ${{ matrix.java-version }}
run: |
java -version
./mvnw clean install
- name: Build Java Doc ${{ matrix.java-version }}
run: ./mvnw javadoc:jar

0 comments on commit 7e49d60

Please sign in to comment.