-
Notifications
You must be signed in to change notification settings - Fork 138
45 lines (32 loc) · 978 Bytes
/
CI.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
name: CI
on:
push:
branches: [ master ]
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-20.04
cmake-opts:
- os: windows-2019
cmake-opts: -A x64
- os: macos-11
cmake-opts:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Dependencies
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: sudo apt-get update -y && sudo apt-get install -yq xorg-dev libgtk-3-dev libasound2-dev libnotify-dev
- name: Configure
shell: bash
working-directory: ${{runner.workspace}}
run: |
cmake -E make_directory ${{runner.workspace}}/build
cmake -S $GITHUB_WORKSPACE -B build/ -DCMAKE_BUILD_TYPE=Release ${{matrix.cmake-opts}}
- name: Build
working-directory: ${{runner.workspace}}
shell: bash
run: cmake --build build/ --config Release