build: add iOS to macos CI (#3564)

Smokescreen for build errors on iOS, currently ignoring failures due to
aforementioned build errors.
This commit is contained in:
Jameson Nash 2022-03-21 20:32:22 -04:00 committed by GitHub
parent 8528c622b0
commit e64ec13c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,12 +21,15 @@ jobs:
- uses: actions/checkout@v2
- name: Envinfo
run: npx envinfo
- name: Build android arm64
- name: Configure android arm64
# see build options you can use in https://developer.android.com/ndk/guides/cmake
run: |
mkdir build && cd build
mkdir build
cd build
$ANDROID_HOME/cmake/3.10.2.4988404/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk/20.0.5594570/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM=android-24 ..
$ANDROID_HOME/cmake/3.10.2.4988404/bin/cmake --build .
- name: Build android arm64
run: |
$ANDROID_HOME/cmake/3.10.2.4988404/bin/cmake --build build
build-macos:
runs-on: macos-10.15
@ -37,11 +40,14 @@ jobs:
- name: Setup
run: |
brew install ninja
- name: Build
- name: Configure
run: |
mkdir build
cd build && cmake .. -DBUILD_TESTING=ON -G Ninja
cmake --build .
cd build
cmake .. -DBUILD_TESTING=ON -G Ninja
- name: Build
run: |
cmake --build build
ls -lh
- name: platform_output
run: |
@ -53,6 +59,21 @@ jobs:
run: |
cd build && ctest -V
build-ios:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
mkdir build-ios
cd build-ios
cmake .. -GXcode -DCMAKE_SYSTEM_NAME:STRING=iOS -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED:BOOL=NO -DCMAKE_CONFIGURATION_TYPES:STRING=Release
- name: Build
continue-on-error: true # XXX: allow failure
run: |
cmake --build build-ios
ls -lh
build-cross-qemu:
runs-on: ubuntu-latest
name: build-cross-qemu-${{ matrix.config.target }}
@ -94,11 +115,14 @@ jobs:
run: |
sudo apt update
sudo apt install ${{ matrix.config.toolchain }} -y
- name: Build
- name: Configure with ${{ matrix.config.cc }}
run: |
mkdir build
cd build && cmake .. -DBUILD_TESTING=ON -DQEMU=ON -DCMAKE_C_COMPILER=${{ matrix.config.cc }}
cmake --build .
cd build
cmake .. -DBUILD_TESTING=ON -DQEMU=ON -DCMAKE_C_COMPILER=${{ matrix.config.cc }}
- name: Build
run: |
cmake --build build
ls -lh
- name: Test
run: |