x-tools/.workflow/daily_build.yml
2023-11-22 00:27:13 +08:00

44 lines
1.4 KiB
YAML

version: '1.0'
name: daily_build
displayName: daily_build
triggers:
trigger: manual
push:
branches:
precise:
- master
stages:
- name: stage-c55b27b6
displayName: BuildProjet
strategy: naturally
trigger: auto
executor:
- qsaker
steps:
- step: build@gcc
name: build_gcc
displayName: Build
gccVersion: '9.4'
commands:
- apt-get update --fix-missing -y
- apt-get install libgl1-mesa-dev -y
- '# -------------------------------------------------------------'
- apt-get install qt5-default -y
- qmake -v
- '# -------------------------------------------------------------'
- apt-get install libqt5charts5 libqt5charts5-dev -y
- apt-get install libqt5serialbus5 libqt5serialbus5-dev -y
- apt-get install libqt5serialport5 libqt5serialport5-dev -y
- apt-get install libqt5websockets5 libqt5websockets5-dev -y
- '# -------------------------------------------------------------'
- mkdir build && cd build
- cmake -DQT_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5 -DQt5_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5 -DCMAKE_BUILD_TYPE="Release" -G 'Unix Makefiles' ../ && make -j2
artifacts:
- name: BUILD_ARTIFACT
path:
- ./bin
caches: []
notify: []
strategy:
retry: '0'