Skip to content

Workflows: Caching (#134) #5

Workflows: Caching (#134)

Workflows: Caching (#134) #5

name: Linux Medium Build
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_type: [ "release", "debug" ]
use_cxx: [ "clang++-15", "g++-13" ]
use_cpp98: [ "OFF", "ON" ]
use_float: [ "OFF", "ON" ]
steps:
- uses: actions/checkout@v4
- name: Restore cmake dependencies
id: cache-restore-cmake-deps
uses: actions/cache/restore@v4
with:
path: |
fuzzylite/build/${{ matrix.build_type }}/_deps
key: ${{ runner.os }}-cmake-deps
- name: Building FuzzyLite
working-directory: fuzzylite
env:
CXX: ${{ matrix.use_cxx }}
run: |
cmake -B build/${{ matrix.build_type }} -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DFL_CPP98=${{ matrix.use_cpp98 }} -DFL_USE_FLOAT=${{ matrix.use_float }} .
cmake --build build/${{ matrix.build_type }} --parallel
ctest --test-dir build/${{ matrix.build_type }}