CMake integration #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |