2020-06-17 10:48:08 -04:00
|
|
|
name: "Build"
|
|
|
|
|
2021-03-04 13:35:45 -05:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-05-17 04:18:19 -04:00
|
|
|
java: [ 8, 11, 16 ]
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.m2/repository
|
|
|
|
!~/.m2/repository/org/apache/activemq/artemis-*
|
|
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-maven-
|
|
|
|
|
|
|
|
- name: Install JDK ${{ matrix.java }}
|
2021-05-17 10:04:43 -04:00
|
|
|
uses: actions/setup-java@v2
|
2020-06-17 10:48:08 -04:00
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
2021-05-17 10:04:43 -04:00
|
|
|
distribution: 'adopt'
|
2020-06-17 10:48:08 -04:00
|
|
|
|
|
|
|
# use 'install' so smoke-tests will work
|
|
|
|
# use '-Pextra-tests' to ensure extra-tests compiles even though they won't actually run
|
|
|
|
# By setting anything to org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED we are disabling libaio loading on the testsuite
|
2020-09-01 10:30:42 -04:00
|
|
|
- name: Build Main
|
|
|
|
run: |
|
2021-05-17 04:18:19 -04:00
|
|
|
mvn -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh install
|
2021-03-04 13:35:45 -05:00
|
|
|
|
|
|
|
- name: Build Examples (JDK8 / -Prelease)
|
|
|
|
if: matrix.java == '8'
|
2020-06-17 10:48:08 -04:00
|
|
|
run: |
|
|
|
|
cd examples
|
2021-03-04 13:35:45 -05:00
|
|
|
mvn install -Prelease
|
2020-06-17 10:48:08 -04:00
|
|
|
|
2021-03-04 13:35:45 -05:00
|
|
|
- name: Build Examples (JDK 11+ / -Pexamples,noRun)
|
|
|
|
if: matrix.java != '8'
|
|
|
|
run: |
|
|
|
|
cd examples
|
|
|
|
mvn install -Pexamples,noRun
|
2021-04-08 18:43:46 -04:00
|
|
|
|
|
|
|
- name: javadoc check (mvn javadoc:javadoc -Prelease on JDK 8)
|
|
|
|
if: matrix.java == '8'
|
|
|
|
run: |
|
|
|
|
mvn javadoc:javadoc -Prelease
|