Skip to content

Commit

Permalink
Merge pull request #23889 from gastaldi/quarkiverse_build
Browse files Browse the repository at this point in the history
Quarkiverse extensions can build on other OSes too
  • Loading branch information
gsmet authored Mar 4, 2022
2 parents 7442da1 + e5394bf commit 3aca34d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,25 @@ on:

jobs:
build:

runs-on: ubuntu-latest

name: Build on ${{ matrix.os }}
strategy:
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Prepare git
run: git config --global core.autocrlf false
if: startsWith(matrix.os, 'windows')

- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
cache: 'maven'

- name: Build with Maven
run: mvn -B formatter:validate verify --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ jobs:
with:
distribution: temurin
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'

- name: Configure Git author
run: |
Expand Down

0 comments on commit 3aca34d

Please sign in to comment.