diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a530026 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +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}}