Skip to content

Migrate to github actions #20

Migrate to github actions

Migrate to github actions #20

Workflow file for this run

---
name: jvmquake-ci
on:
push:
branches:
- master
- main
tags:
- v'*'
pull_request:
jobs:
jammy-java:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ]
steps:
- uses: actions/checkout@v2
- name: "Set nproc limits"
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: 'zulu'
java-version: |
8
${{ matrix.java }}
- name: "Build jvmquake with Java 8"
run: JAVA_HOME=$JAVA_HOME_8_X64 make -C src
- name: Test jvmquake against JVM ${{ matrix.java }}
run: env | grep JAVA && make -C tests
# env:
# TARGET: ${{ matrix.target }}
# run: "make $TARGET"
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# include:
# - target: test_bionic_openjdk8
# - target: test_bionic_openjdk11
# - target: test_bionic_zulu8
# - target: test_bionic_zulu11
# - target: test_jammy_openjdk8
# - target: test_jammy_openjdk11
# - target: test_centos7_openjdk8
# steps:
# - uses: actions/checkout@v2
# - name: ulimit
# run: |
# sudo prlimit --pid $$ --nofile=32768:32768 --nproc=32768:32768
# ulimit -n -u
# - name: "Run tests"
# env:
# TARGET: ${{ matrix.target }}
# run: "make $TARGET"