Josm Contourmerge Plugin #274
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Josm Contourmerge Plugin | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
# build once every day | |
- cron: '0 1 * * *' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
josm-versions: | |
- latest | |
- tested | |
- release | |
jdk: | |
- 17 | |
platform: | |
- ubuntu-latest | |
- windows-latest | |
name: Build plugin on ${{ matrix.platform }} - JDK ${{ matrix.jdk }}, JOSM Version ${{ matrix.josm-version }} | |
runs-on: ${{ matrix.platform }} | |
env: | |
JAVA_OPTS: "-Xmx6G" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '${{ matrix.jdk }}' | |
distribution: 'microsoft' | |
# headless X11 setup according to | |
# https://stackoverflow.com/questions/68292797/running-java-gui-tests-on-github-using-xvfb | |
- name: Set up virtual X11 | |
if: ${{ matrix.platform == 'ubuntu-latest' }} | |
run: sudo apt-get -y install xvfb | |
- name: Start virtual frame buffer | |
if: ${{ matrix.platform == 'ubuntu-latest' }} | |
run: Xvfb :19 -screen 0 1024x768x16 & | |
- name: Build with Gradle | |
uses: gradle/[email protected] | |
env: | |
DISPLAY: ":19" | |
with: | |
arguments: build -Pplugin.josmCompileVersion=${{ matrix.josm-version }} | |