-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 988 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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