[WFSSL-116] Update CI to also run with SE 21 #62
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
name: Pull Request CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
java-version: [11, 17, 21] | |
include: | |
- os: windows-latest | |
vcvars: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat | |
openssl_home: C:\Program Files\OpenSSL-Win64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java-version }} | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Maven Version Info | |
run: mvn -version | |
- if: matrix.os != 'windows-latest' | |
name: OpenSSL Library Version Info | |
run: openssl version -v | |
- if: matrix.os == 'windows-latest' | |
name: Install full OpenSSL library | |
run: | | |
choco install --no-progress openssl | |
- if: matrix.os == 'macos-latest' | |
name: Build with Maven (macOS) | |
run: mvn -B package --file pom.xml | |
- if: matrix.os == 'ubuntu-latest' | |
name: Build with Maven (Ubuntu) | |
run: mvn -B package --file pom.xml -Dorg.wildfly.openssl.path=/usr/lib/x86_64-linux-gnu | |
- if: matrix.os == 'windows-latest' | |
name: Build with Microsoft Visual Studio native tools command prompt and Maven | |
env: | |
VCVARS: ${{ matrix.vcvars }} | |
OPENSSL_HOME: ${{ matrix.openssl_home }} | |
shell: cmd | |
run: | | |
call "%VCVARS%" | |
mvn -B package --file pom.xml -Dorg.wildfly.openssl.path="%OPENSSL_HOME%"\bin | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: surefire-reports | |
path: '**/surefire-reports/*.txt' | |