Repository navigation
64 lines (54 loc) · 2.32 KB
/
Copy pathci.yml
File metadata and controls
64 lines (54 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java-version: [ '25', '27' ]
steps:
- uses: actions/checkout@v7
- name: Set up Azul Zulu JDK ${{ matrix.java-version }}
uses: actions/setup-java@v6.1.0
with:
distribution: zulu
java-version: ${{ matrix.java-version }}
- name: Cache Maven repository
uses: actions/cache@v6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# The integration tests download Rust-written fixtures from S3 (a snapshot pinned to the
# vortex-jni version) and LocalHttpCache keeps them here, so a cache hit takes the S3 round
# trips, and their occasional connection resets, out of the run. Windows skips integration.
- name: Cache downloaded test fixtures
if: runner.os != 'Windows'
uses: actions/cache@v6
with:
path: /tmp/vortex-compat-fixtures
key: fixtures-${{ runner.os }}-${{ hashFiles('integration/src/test/java/io/github/dfa1/vortex/integration/RustFixtures.java') }}
# vortex-jni 0.74.0 ships native libs for darwin-aarch64 + linux-aarch64
# + linux-amd64 only. No Windows binary, so the modules that pull vortex-jni
# (integration, performance) are skipped on Windows. Being the only Vortex
# impl that runs on Windows JVMs is one of vortex-java's selling points —
# see README "Who is this for".
- name: Build and test (Linux + macOS)
if: runner.os != 'Windows'
run: ./mvnw verify
# The test JVMs add jdk.incubator.vector; users get the auto-vectorized kernels unless they opt in.
# This leg runs everything again without the module, the configuration most users run.
- name: Build and test without the Vector API module
if: matrix.os == 'ubuntu-latest' && matrix.java-version == '25'
run: ./mvnw verify -Dtest.vector.args=
- name: Build and test (Windows)
if: runner.os == 'Windows'
shell: bash
run: ./mvnw verify -pl '!integration,!performance'