-
Notifications
You must be signed in to change notification settings - Fork 138
46 lines (33 loc) · 1010 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
41
name: CI
on:
push:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
cmake-opts:
- os: windows-2019
cmake-opts: -A x64
- os: macos-11
cmake-opts: -G Xcode
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- 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