forked from zarr-developers/zarr-java
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.25 KB
/
ci.yml
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
name: CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
os: [ ubuntu, windows, macos ]
fail-fast: false
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Download blosc jar
run: |
mkdir -p ../blosc-java/target
curl https://static.webknossos.org/misc/blosc-java-0.1-1.21.4-SNAPSHOT.jar -o ../blosc-java/target/blosc-java-0.1-1.21.4-SNAPSHOT.jar
- name: Download testdata
run: |
mkdir testoutput
curl https://static.webknossos.org/data/zarr_v3/l4_sample.zip -o testdata/l4_sample.zip
cd testdata
unzip l4_sample.zip
- name: Build
run: mvn compile
- name: Test
env:
MAVEN_OPTS: "-Xmx6g"
run: mvn test -DargLine="-Xmx6g"
- name: Assemble JAR
run: mvn package -DskipTests
- uses: actions/upload-artifact@v3
with:
name: jar
path: target/*.jar