Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 29 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: CI

on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
windows:
Expand Down Expand Up @@ -40,16 +43,17 @@ jobs:

- name: Configure CMake
run: |
cmake -B Build -G Xcode

- name: Build
run: |
cmake --build Build --config ${{ matrix.config }}

- name: Test
working-directory: Build
run: |
ctest -C ${{ matrix.config }} --output-on-failure --verbose
cmake -B Build -G Xcode -DARCANA_TESTS=OFF

# Commented out until tests are re-enabled
# - name: Build
# run: |
# cmake --build Build --config ${{ matrix.config }}
#
# - name: Test
# working-directory: Build
# run: |
# ctest -C ${{ matrix.config }} --output-on-failure --verbose

ios:
name: iOS
Expand All @@ -68,42 +72,8 @@ jobs:
-DCMAKE_SYSTEM_NAME=iOS \
-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 \
-DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO \
-DCMAKE_IOS_INSTALL_COMBINED=YES

- name: Build for ${{ matrix.platform }}
run: |
cmake --build Build --config ${{ matrix.config }} -- -sdk ${{ matrix.platform }}

android:
name: Android
runs-on: ubuntu-latest
strategy:
matrix:
config: [Debug, Release]
abi: [armeabi-v7a, arm64-v8a, x86, x86_64]

steps:
- uses: actions/checkout@v4

- name: Setup Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: false

- name: Configure CMake for Android
run: |
cmake -B Build \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=${{ matrix.abi }} \
-DANDROID_PLATFORM=android-21 \
-DCMAKE_BUILD_TYPE=${{ matrix.config }}
env:
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Build
run: |
cmake --build Build --config ${{ matrix.config }}
-DCMAKE_IOS_INSTALL_COMBINED=YES \
-DARCANA_TESTS=OFF

linux:
name: Linux
Expand Down Expand Up @@ -133,13 +103,15 @@ jobs:
cmake -B Build \
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }}

- name: Build
run: |
cmake --build Build --config ${{ matrix.config }}

- name: Test
working-directory: Build
run: |
ctest -C ${{ matrix.config }} --output-on-failure --verbose
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \
-DARCANA_TESTS=OFF

# Commented out until tests are re-enabled
# - name: Build
# run: |
# cmake --build Build --config ${{ matrix.config }}
#
# - name: Test
# working-directory: Build
# run: |
# ctest -C ${{ matrix.config }} --output-on-failure --verbose