40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Main LMDBAL workfow
|
|
run-name: ${{ gitea.actor }} is running LMDBAL main workflow
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
Archlinux:
|
|
runs-on: archlinux
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Make a build directory
|
|
run: mkdir build
|
|
|
|
- name: Configure
|
|
working-directory: ./build
|
|
run: cmake .. -D BUILD_TESTS=True -D BUILD_DOC=True -D BUILD_DOXYGEN_AWESOME=True -D QT_VERSION_MAJOR=5
|
|
|
|
- name: Build
|
|
working-directory: ./build
|
|
run: cmake --build .
|
|
|
|
- name: Run tests
|
|
working-directory: ./build/test
|
|
run: ./runUnitTests
|
|
|
|
- name: Copy docs via scp
|
|
uses: appleboy/scp-action@master
|
|
# working-directory: ./build/doc //doesn't work
|
|
with:
|
|
host: ${{ secrets.DOMAIN_ROOT }}
|
|
username: ${{ secrets.DEPLOY_USER_NAME }}
|
|
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
|
source: "/build/doc/html,/build/doc/xml,/build/doc/man"
|
|
target: ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }}
|
|
strip_components: 2
|