Skip to content

Commit 5a70cf5

Browse files
GitHub Actions
1 parent 1e0780a commit 5a70cf5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{matrix.os}}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- name: 'Ubuntu (Clang)'
13+
os: ubuntu-latest
14+
cCompiler: 'clang'
15+
cppCompiler: 'clang++'
16+
- name: 'Ubuntu (GCC)'
17+
os: ubuntu-latest
18+
cCompiler: 'gcc'
19+
cppCompiler: 'g++'
20+
21+
steps:
22+
- name: Install packages
23+
run: sudo apt-get install -y cmake
24+
ninja-build
25+
libfuse-dev
26+
libasound-dev
27+
libpulse-dev
28+
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: recursive
32+
33+
- name: Build
34+
uses: threeal/cmake-action@v2
35+
with:
36+
generator: Ninja
37+
c-compiler: ${{matrix.cCompiler}}
38+
cxx-compiler: ${{matrix.cppCompiler}}

0 commit comments

Comments
 (0)