GitHub Actions workflow improvements (#11507)
* Checkout merged branches for pull requests * Add support for incremental add-on builds to speed up PR builds * Echo the mvn command used for builds Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
14
.github/workflows/ci-build.yml
vendored
14
.github/workflows/ci-build.yml
vendored
@@ -24,8 +24,15 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
if: github.head_ref == ''
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout merge
|
||||
if: github.head_ref != ''
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: refs/pull/${{github.event.pull_request.number}}/merge
|
||||
|
||||
- name: Set up Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@@ -47,10 +54,17 @@ jobs:
|
||||
with:
|
||||
maven-version: ${{ matrix.maven }}
|
||||
|
||||
- name: Get Changed Files
|
||||
id: files
|
||||
uses: Ana06/get-changed-files@v2.0.0
|
||||
with:
|
||||
format: 'csv'
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
run: './.github/scripts/maven-build'
|
||||
env:
|
||||
CHANGED_FILES: ${{ steps.files.outputs.all }}
|
||||
MAVEN_OPTS: >-
|
||||
-Xmx2g
|
||||
-Dmaven.wagon.http.retryHandler.count=5
|
||||
|
||||
Reference in New Issue
Block a user