forked from blue/lmdbal
CI try 9
This commit is contained in:
parent
4c5e4bb6ac
commit
75010c0bc6
@ -6,33 +6,15 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
debug-path:
|
|
||||||
name: Debug Repository State
|
|
||||||
runs-on: archlinux
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Ensure all files and full history are fetched
|
|
||||||
path: . # Clone into the root workspace directory
|
|
||||||
|
|
||||||
- name: List all files in the workspace
|
|
||||||
run: |
|
|
||||||
echo "Listing files in $(pwd):"
|
|
||||||
ls -la
|
|
||||||
echo "Checking .gitea contents:"
|
|
||||||
ls -la .gitea/workflows || echo ".gitea/workflows not found!"
|
|
||||||
|
|
||||||
|
|
||||||
test-qt5:
|
test-qt5:
|
||||||
name: Test LMDBAL with qt5
|
name: Test LMDBAL with qt5
|
||||||
uses: ./.gitea/workflows/unit-test.yml
|
uses: ./.gitea/workflows/test.yml
|
||||||
with:
|
with:
|
||||||
flags: -D QT_VERSION_MAJOR=5
|
flags: -D QT_VERSION_MAJOR=5
|
||||||
|
|
||||||
test-qt6:
|
test-qt6:
|
||||||
name: Test LMDBAL with qt6
|
name: Test LMDBAL with qt6
|
||||||
uses: ./.gitea/workflows/unit-test.yml
|
uses: ./.gitea/workflows/test.yml
|
||||||
with:
|
with:
|
||||||
flags: -D QT_VERSION_MAJOR=6
|
flags: -D QT_VERSION_MAJOR=6
|
||||||
|
|
||||||
|
36
.gitea/workflows/test.yml
Normal file
36
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: Build and run unit tests for LMDBAL
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
flags:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
flags:
|
||||||
|
description: "Flags for CMake configure stage"
|
||||||
|
type: string
|
||||||
|
default: "lmdbal"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Building and rinning unit tests
|
||||||
|
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 QT_VERSION_MAJOR= ${{ inputs.flags }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ./build
|
||||||
|
run: cmake --build .
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
working-directory: ./build/test
|
||||||
|
run: ./runUnitTests
|
Loading…
Reference in New Issue
Block a user