Skip to content

Commit

Permalink
Configure a matrix-based CI build that iterates over multiple platfor…
Browse files Browse the repository at this point in the history
…ms and Java versions
  • Loading branch information
besidev committed Sep 25, 2024
1 parent 5aa38e6 commit da6ad59
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/linux.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI build

on: [push]

jobs:
builds:
name: '${{ matrix.os }} with Java ${{ matrix.jdk }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
jdk: [17] #, 21]
os: [ubuntu-latest, windows-latest] #, macos-13]
fail-fast: false
max-parallel: 4
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}

- name: Compile
run: |
./gradlew jar
./gradlew example:jar
- name: Test
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16;
fi
./gradlew -DciTest=true test
shell: bash

- name: Javadoc
run: |
./gradlew javadoc

0 comments on commit da6ad59

Please sign in to comment.