mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
28 lines
612 B
YAML
28 lines
612 B
YAML
name: C2Core Tests (Linux)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-linux:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt-get update && sudo apt-get install -y cmake g++ curl make libssl-dev libsmbclient-dev pkg-config
|
|
|
|
- name: Configure with CMake
|
|
run: cmake -S . -B build -DC2CORE_BUILD_TESTS=ON
|
|
|
|
- name: Build
|
|
run: cmake --build build -j$(nproc)
|
|
|
|
- name: Run tests
|
|
run: ctest --test-dir build --output-on-failure
|