blob: fa72d2d437abe797b645f8cb6bb86f6681551101 [file]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Benchmark adhoc
on:
# allow direct trigger
workflow_dispatch:
permissions:
contents: read
jobs:
build:
timeout-minutes: 5
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
max-parallel: 20
matrix:
os: [macos-15, ubuntu-latest, windows-latest]
# Run lowest and highest Java versions only
java: [ 8, 21, 25 ]
experimental: [false]
fail-fast: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 #v6.1.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # 6.0.0
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: OpenSSL version
run: openssl version -a
# - name: Build with Maven
# # OPENSSL_HOME is needed for Windows build; not used by other builds so can set unconditionally
# # It's not clear how one is supposed to find the correct setting;
# # The value below was found by searching for openssl files under C (warning: slow)
# # Other possible values are:
# # "C:\\Miniconda\\pkgs\\openssl-1.1.1n-h2bbff1b_0\\Library"
# # "C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\opt"
# env:
# OPENSSL_HOME: "C:\\Miniconda\\Library"
# run: mvn --show-version --batch-mode --no-transfer-progress -DtrimStackTrace=false clean test-compile -Pbenchmark
# # will fail on Windows...
- name: Host details
run: uname -a