Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebeatrici committed Aug 31, 2024
1 parent 1e0780a commit 2f66b45
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- name: 'Ubuntu (Clang)'
os: ubuntu-latest
cCompiler: 'clang'
cppCompiler: 'clang++'
- name: 'Ubuntu (GCC)'
os: ubuntu-latest
cCompiler: 'gcc'
cppCompiler: 'g++'

steps:
- name: Install packages
run: sudo apt-get install -y cmake
ninja-build
libfuse-dev
libasound-dev
libpulse-dev

- uses: actions/checkout@v4
with:
submodules: recursive

- name: Build
uses: threeal/cmake-action@v2
with:
generator: Ninja
c-compiler: ${{matrix.cCompiler}}
cxx-compiler: ${{matrix.cppCompiler}}
options: |
alsa=ON
test=ON

0 comments on commit 2f66b45

Please sign in to comment.