Skip to content

Make JBWAPI ready to connect as fast as possible #189

Make JBWAPI ready to connect as fast as possible

Make JBWAPI ready to connect as fast as possible #189

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java:
# Java LTS versions
- '8' # 2030/12
- '11' # 2032/01
- '17' # 2029/09
- '21' # 2031/09
name: Java ${{ matrix.Java }} sample
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Test with Maven
run: mvn test
windows-java8-x86:
name: Windows Java 8 x86
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- name: Set up the primary bot runtime
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '8'
architecture: 'x86'
- name: Verify 32-bit Java 8
shell: pwsh
run: |
$settings = (& java -XshowSettings:properties -version 2>&1 | Out-String)
if ($settings -notmatch 'sun.arch.data.model\s*=\s*32' -or $settings -notmatch 'java.specification.version\s*=\s*1\.8') {
throw 'Expected a 32-bit Java 8 JVM'
}
java -version
- name: Build and test with Maven
run: mvn -B package --file pom.xml