aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2021-11-23 16:51:23 +1300
committerMatthew Gregan <[email protected]>2021-11-23 16:54:12 +1300
commitdcc5cb5c15a0ee0ea0f9f9a04d4cd48af6714501 (patch)
tree43a8bfcaa987468fa29f32b7d80e72f1768f4a3f /.github/workflows
parent2650b46c955d131225cd9f0eda7a02855d420ce6 (diff)
downloadcubeb-dcc5cb5c15a0ee0ea0f9f9a04d4cd48af6714501.tar.gz
cubeb-dcc5cb5c15a0ee0ea0f9f9a04d4cd48af6714501.zip
CI: Add Android (API level 26) builds.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3cee61b..a5f533b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -38,6 +38,26 @@ jobs:
run: (cd build && ctest -V)
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-10.15' }}
+ build-android:
+ runs-on: ubuntu-20.04
+ env:
+ BUILD_TYPE: ${{ matrix.type }}
+ strategy:
+ matrix:
+ type: [Release, Debug]
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Configure CMake
+ shell: bash
+ run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-26
+
+ - name: Build
+ shell: bash
+ run: cmake --build build
+
check_format:
runs-on: ubuntu-20.04
steps:
@@ -47,7 +67,7 @@ jobs:
- name: Configure CMake
shell: bash
- run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
+ run: cmake -S . -B build
- name: Check format
shell: bash