Skip to content

Commit

Permalink
Rework CI to add multi-version build and Maven repository caching
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed Jan 30, 2022
1 parent f8703e7 commit 5041143
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 75 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Java CI with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
name: Java ${{ matrix.java }}
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 18-ea, 19-ea ]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven
run: mvn -B package
25 changes: 0 additions & 25 deletions .github/workflows/maven_java1.8.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/maven_java11.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/maven_java15.yml

This file was deleted.

0 comments on commit 5041143

Please sign in to comment.