From 5e6a8651a8636ebe7582ca76d49562dabfbc063e Mon Sep 17 00:00:00 2001 From: Jhen Date: Mon, 11 Sep 2023 19:06:25 +0800 Subject: [PATCH] ci : split ios/tvos jobs --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58b21bec9..95538bd88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -197,11 +197,24 @@ jobs: cd build ctest --verbose --timeout 900 - - name: Build for iOS - id: cmake_build_ios + macOS-latest-cmake-ios: + runs-on: macos-latest + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v1 + + - name: Dependencies + id: depends + continue-on-error: true + run: | + brew update + + - name: Build + id: cmake_build run: | sysctl -a - rm -rf build mkdir build cd build cmake -G Xcode .. \ @@ -212,11 +225,24 @@ jobs: -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 cmake --build . --config Release - - name: Build for tvOS - id: cmake_build_tvos + macOS-latest-cmake-tvos: + runs-on: macos-latest + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v1 + + - name: Dependencies + id: depends + continue-on-error: true + run: | + brew update + + - name: Build + id: cmake_build run: | sysctl -a - rm -rf build mkdir build cd build cmake -G Xcode .. \