2023-08-19 22:31:19 +00:00
|
|
|
name: Main LMDBAL workfow
|
|
|
|
run-name: ${{ gitea.actor }} is running LMDBAL main workflow
|
2023-08-20 14:56:39 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-08-20 14:58:30 +00:00
|
|
|
- master
|
2023-08-19 22:31:19 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-08-20 01:41:27 +00:00
|
|
|
Archlinux:
|
2023-08-20 00:16:13 +00:00
|
|
|
runs-on: archlinux
|
2023-08-19 22:31:19 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2023-08-20 15:10:32 +00:00
|
|
|
|
2023-08-19 22:31:19 +00:00
|
|
|
- name: Make a build directory
|
|
|
|
run: mkdir build
|
2023-08-20 15:10:32 +00:00
|
|
|
|
2023-08-19 22:31:19 +00:00
|
|
|
- name: Configure
|
2023-08-20 01:15:34 +00:00
|
|
|
working-directory: ./build
|
|
|
|
run: cmake .. -D BUILD_TESTS=True -D BUILD_DOC=True -D BUILD_DOXYGEN_AWESOME=True -D QT_VERSION_MAJOR=5
|
2023-08-20 15:10:32 +00:00
|
|
|
|
2023-08-19 22:31:19 +00:00
|
|
|
- name: Build
|
2023-08-20 01:15:34 +00:00
|
|
|
working-directory: ./build
|
|
|
|
run: cmake --build .
|
2023-08-20 15:10:32 +00:00
|
|
|
|
2023-08-20 01:37:21 +00:00
|
|
|
- name: Run tests
|
|
|
|
working-directory: ./build/test
|
|
|
|
run: ./runUnitTests
|
2023-08-20 15:10:32 +00:00
|
|
|
|
2023-08-20 14:56:39 +00:00
|
|
|
- name: Copy docs via scp
|
|
|
|
uses: appleboy/scp-action@v0.1.4
|
2023-08-20 15:04:21 +00:00
|
|
|
working-directory: ./build/doc
|
2023-08-20 14:56:39 +00:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.DOMAIN_ROOT }}
|
|
|
|
username: ${{ secrets.DEPLOY_USER_NAME }}
|
|
|
|
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
2023-08-20 15:10:32 +00:00
|
|
|
source: "html,xml,man"
|
2023-08-20 14:56:39 +00:00
|
|
|
target: ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }}
|