2022-12-12 08:27:18 +00:00
|
|
|
name: Deploying
|
|
|
|
|
2022-12-12 09:51:37 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2022-12-12 08:27:18 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
clang-format-check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-12 09:05:01 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-12-12 08:27:18 +00:00
|
|
|
- name: Install clang-format
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y clang-format
|
|
|
|
- name: Run clang-format
|
|
|
|
run: cd ${GITHUB_WORKSPACE}/ci && sh ./lint.sh && cd ${GITHUB_WORKSPACE}
|
|
|
|
- name: Check for changes
|
|
|
|
run: |
|
2022-12-12 08:58:53 +00:00
|
|
|
if ! git diff --ignore-space-at-eol --exit-code; then
|
2022-12-12 08:27:18 +00:00
|
|
|
exit 1
|
2022-12-12 09:05:01 +00:00
|
|
|
fi
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Qt
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-12-12 09:29:54 +00:00
|
|
|
sudo apt-get install -y qtbase5-dev qt5-qmake libqt5svg5-dev
|
2022-12-12 09:05:01 +00:00
|
|
|
- name: Build application
|
|
|
|
run: |
|
|
|
|
cd ${GITHUB_WORKSPACE}/application
|
|
|
|
qmake
|
|
|
|
make
|