Switch to setup-java action #17
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: Gradle QT Application Example | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-project: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '20' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Setup Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
cache: true | |
- id: platform | |
uses: ASzc/change-string-case-action@v6 | |
with: | |
string: ${{ runner.os }} | |
- name: Run build with Gradle Wrapper | |
run: ./gradlew build | |
- name: Test application | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: ${{ github.workspace }}/build/exe/main/debug/${{ steps.platform.outputs.lowercase }}/qt-application-example --version |