mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +00:00
49 lines
967 B
YAML
49 lines
967 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
- cron: '00 02 */4 * *'
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
jobs:
|
|
tests:
|
|
name: Run tests
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
os: [ubuntu-22.04, ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
- name: Check versions
|
|
run: |
|
|
set -e
|
|
cmake --version
|
|
gcc --version
|
|
echo "end of versions checking"
|
|
shell: bash
|
|
- uses: awalsh128/cache-apt-pkgs-action@v1
|
|
with:
|
|
packages: libglib2.0-dev cmake
|
|
version: 1.0
|
|
- name: Run tests
|
|
run: |
|
|
set -e
|
|
cd $GITHUB_WORKSPACE
|
|
mkdir build
|
|
cd build
|
|
cmake -DBUILD_TESTS=True ..
|
|
make -k -j2 VERBOSE=1
|
|
ctest --output-on-failure
|
|
shell: bash
|