Skip to content

CMake integration

CMake integration #14

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
libcred:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Compile and run tests
steps:
- uses: actions/checkout@v2
- name: Install system deps for ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install -y gnome-keyring dbus-x11
- name: Install mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: .github/environment.yml
- name: Build
shell: bash -l {0}
run: |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then
export $(dbus-launch)
export $(echo 'somerandompass' | gnome-keyring-daemon --unlock)
fi
meson setup builddir
cd builddir
ninja
ninja test
./ex1