Skip to content

Use install-qt action #7

Use install-qt action

Use install-qt action #7

name: CMake on a single platform
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
qml5-contextproperty:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.0'
host: 'linux'
target: 'desktop'
dir: '${{ github.workspace }}/example/'
install-deps: 'true'
modules: 'qtbase qtsvg qtdeclarative'
cache: 'true'
- name: Install
run: sudo apt install -y qt6-declarative-dev libglx-dev libgl1-mesa-dev
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S qml5-contextproperty/
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Test
# working-directory: ${{github.workspace}}/build
# run: ctest -C ${{env.BUILD_TYPE}}
qml6-qmlelement:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.0'
host: 'linux'
target: 'desktop'
dir: '${{ github.workspace }}/example/'
install-deps: 'true'
modules: 'qtbase qtsvg qtdeclarative'
cache: 'true'
- name: Install
run: sudo apt install -y qt6-declarative-dev libglx-dev libgl1-mesa-dev
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -S qml6-qmlelement/
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}