-
Notifications
You must be signed in to change notification settings - Fork 23
85 lines (85 loc) · 2.47 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: jvmquake-ci
on:
push:
branches:
- master
- main
tags:
- v'*'
pull_request:
jobs:
centos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Set nproc limits to control threads"
run: |
sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768
ulimit -n -u
- name: "Test Java 8 for centos7 in Docker"
run: make test_centos7_openjdk8
ubuntu-jammy:
runs-on: ubuntu-22.04
strategy:
matrix:
dist: ['zulu', 'temurin', 'corretto']
java: ['8', '11', '17', '21']
steps:
- uses: actions/checkout@v2
- name: "Set nproc limits to control threads"
run: |
sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768
ulimit -n -u
- name: "Setup python for tox"
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: "Install tox for test suite"
run: pip install tox
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.dist }}
java-version: |
8
${{ matrix.java }}
- name: "Build jvmquake .so with Java 8"
run: JAVA_HOME=$JAVA_HOME_8_X64 make -C src
- name: Build jvmquake tests against Java ${{ matrix.java }}
run: env | grep JAVA && make -C tests
- name: Run jvmquake tests against Java ${{ matrix.java }}
env:
JAVA_MAJOR_VERSION: ${{ matrix.java }}
run: tox -e test,test_jvm
ubuntu-bionic:
runs-on: ubuntu-20.04
strategy:
matrix:
dist: ['zulu', 'temurin', 'corretto']
java: ['8', '11', '17', '21']
steps:
- uses: actions/checkout@v2
- name: "Set nproc limits to control threads"
run: |
sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768
ulimit -n -u
- name: "Setup python for tox"
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: "Install tox for test suite"
run: pip install tox
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.dist }}
java-version: |
8
${{ matrix.java }}
- name: "Build jvmquake .so with Java 8"
run: JAVA_HOME=$JAVA_HOME_8_X64 make -C src
- name: Build jvmquake tests against JVM ${{ matrix.java }}
run: env | grep JAVA && make -C tests
- name: Run jvmquake tests against JVM ${{ matrix.java }}
env:
JAVA_MAJOR_VERSION: ${{ matrix.java }}
run: tox -e test,test_jvm