Changes for Runner #20
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: QtStudentDBManagerCI | |
on: | |
push: | |
branches: [ network ] | |
pull_request: | |
branches: | |
- master | |
- network | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Commented out alternative Qt installation steps | |
# - name: Install Qt | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install -y build-essential libgl1-mesa-dev git cmake gettext | |
# sudo apt-get install -y qt6* | |
# # sudo apt-get install -y qt6-base-dev qt6-network-dev qt6-qml-dev qt6-quick-dev qt6-sql-dev | |
# # sudo apt-get install -y qtbase6-dev qtdeclarative5-dev qtquickcontrols2-5-dev libqt5remoteobjects5-dev libqt5serialport5-dev libkf5config-dev | |
# # sudo apt-get install -y libkf5coreaddons-dev libkf5i18n-dev extra-cmake-modules | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
with: | |
qt-version: '6.6.0' | |
- name: Create Build Directory | |
run: mkdir build | |
- name: Run CMake and build | |
run: | | |
cmake -B build -S . | |
make -C build | |
# Additional steps for running server, client, and sync, currently commented | |
# - name: Run Server | |
# run: ./build/server | |
# | |
# - name: Run Client | |
# run: ./build/client | |
# | |
# - name: Run Sync | |
# run: ./build/sync | |
- name: Uploading archive Dir to GH. | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ |