aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2021-02-23 13:28:13 +1300
committerMatthew Gregan <[email protected]>2021-03-10 00:41:02 +1300
commit48749d62b0815759844ed14401896f3709337cf7 (patch)
tree6411b7b0deaad694159a5d3ef436cc10d7366822 /.github
parent8942382280721117900072945767cece14eef046 (diff)
downloadcubeb-48749d62b0815759844ed14401896f3709337cf7.tar.gz
cubeb-48749d62b0815759844ed14401896f3709337cf7.zip
Add build action.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..064d06a
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,40 @@
+name: Build
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ env:
+ BUILD_TYPE: ${{ matrix.type }}
+ strategy:
+ matrix:
+ os: [ubuntu-20.04, windows-2019, macos-10.15]
+ type: [Release, Debug]
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Install Dependencies (Linux)
+ run: sudo apt-get install libpulse-dev pulseaudio
+ if: matrix.os == 'ubuntu-20.04'
+
+ - name: Start Sound Server (Linux)
+ run: pulseaudio -D --start
+ if: matrix.os == 'ubuntu-20.04'
+
+ - name: Configure CMake
+ shell: bash
+ run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+
+ - name: Build
+ shell: bash
+ run: cmake --build build
+
+ - name: Test
+ shell: bash
+ run: (cd build && ctest -V)
+ if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-10.15' }}
+