build-ubuntu #521
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: build-ubuntu | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
# on: | |
# push: | |
# branches: | |
# - master | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
version: [6.8.*] | |
arch: [linux_gcc_64] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: '==3.1.*' | |
version: ${{ matrix.version }} | |
target: 'desktop' | |
arch: ${{ matrix.arch }} | |
dir: ${{ github.workspace }} | |
modules: 'qtcharts qtserialbus qtserialport qtwebsockets' | |
- name: install-dependencies | |
run: | | |
sudo apt-get install -y libxcb-xinerama0 libxcb-cursor-dev | |
- name: build for linux | |
run: | | |
git fetch --tags | |
cmake --version | |
mkdir build | |
cd build | |
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../ | |
cmake --build . --target xTools |