Skip to content

Merge branch 'java-8' #27

Merge branch 'java-8'

Merge branch 'java-8' #27

Workflow file for this run

name: 'Build'
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
env:
SELECTED_JAVA_VERSION: ${{ endsWith(github.ref, '8') && '8' || endsWith(github.ref, '11') && '11' || endsWith(github.ref, '17') && '17' || '21' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.SELECTED_JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-disabled: false
cache-read-only: false
cache-write-only: false
cache-overwrite-existing: true
- name: Setup QT
uses: jurplel/install-qt-action@v3
with:
cache: true
- name: Get runner platform
id: platform
uses: ASzc/change-string-case-action@v6
with:
string: ${{ runner.os }}
- name: Run build with Gradle Wrapper
run: ./gradlew build --no-daemon
- name: Test application
uses: coactions/setup-xvfb@v1
with:
run: ${{ github.workspace }}/build/exe/main/debug/${{ steps.platform.outputs.lowercase }}/qt-application-example --version