Skip to content

oir is testing barkeep #314

oir is testing barkeep

oir is testing barkeep #314

Workflow file for this run

name: build
run-name: ${{ github.actor }} is testing barkeep
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test-for-cpp-make:
name: "Build and test for C++ with make"
timeout-minutes: 10
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: "Install tooling"
run: |
sudo apt-get install lcov
g++-13 --version
gcov-13 --version
lcov --version
- run: |
CXX=g++-13 make -j3
./test.out
./test-fmtlib.out
./test-stdfmt.out
lcov -c -d . -o cov.info --gcov-tool gcov-13 --ignore-errors mismatch && \
lcov --gcov-tool gcov-13 \
--remove cov.info \
'/usr/include*' \
'*/subprojects/*' \
'*/tests/*' \
-o barkeep.info
rm cov.info
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: barkeep.info
# - run: ./demo.out
build-and-test-for-cpp-meson:
name: "Build and test for C++ with meson"
timeout-minutes: 10
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: false
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: "Install tooling"
run: |
g++-13 --version
gcov-13 --version
pip install meson pytest
sudo apt install ninja-build
- run: |
CXX=g++-13 meson setup build --buildtype=release --warnlevel=3
meson compile -C build tests
./build/tests/test.out
./build/tests/test-fmtlib.out
./build/tests/test-stdfmt.out
build-and-test-for-python:
name: "Build and test for Python"
timeout-minutes: 10
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: false
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: |
pip install meson pytest
sudo apt install ninja-build
meson setup build --buildtype=release --warnlevel=3
meson compile -C build python
PYTHONPATH=build/python pytest python/tests/test.py