Jandex #562
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Jandex CI | |
on: | |
[push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
java-version: [8, 11] | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java.name }} | |
# Uses sha for added security since tags can be updated | |
uses: joschi/setup-jdk@ccd4eb6437f6a33d3c033551a6004cc6f3078307 | |
with: | |
java-version: ${{ matrix.java-version }} | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
calcite-regression: | |
name: 'regression: Calcite, Java ${{ matrix.java-version }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# javac 8 and 11 might produce slightly different bytecode | |
java-version: [8, 11] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 50 | |
- name: 'Set up JDK 11' | |
# Uses sha for added security since tags can be updated | |
uses: joschi/setup-jdk@ccd4eb6437f6a33d3c033551a6004cc6f3078307 | |
with: | |
java-version: ${{ matrix.java-version }} | |
- name: Build with Maven | |
run: | | |
# Set 1.0.0-dev version to ensure it will be used when building Calcite later | |
mvn -B versions:set -DnewVersion=1.0.0-dev-SNAPSHOT | |
mvn -B versions:commit | |
mvn -B install -DskipTests --file pom.xml | |
- name: 'Clone Calcite' | |
run: | | |
git clone --branch master --depth 100 https://github.com/apache/calcite.git ../calcite | |
- name: Verify Calcite bytecode | |
uses: burrunan/gradle-cache-action@feb985ecf49f57f54f31920821a50d0394faf122 | |
with: | |
job-id: calcite-jdk${{ matrix.java-version }} | |
build-root-directory: ../calcite | |
arguments: --scan --no-parallel --no-daemon --continue jandex | |
properties: | | |
enableMavenLocal=true | |
jandex.version=1.0.0-dev-SNAPSHOT | |
skipJandex=false | |
- name: Prepare failure archive (if run failed) | |
if: failure() | |
shell: bash | |
run: | | |
pwd | |
tar -czf calcite-work.tgz ../calcite | |
- name: Upload failure Archive (if run failed) | |
uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: calcite-work | |
path: calcite-work.tgz |