fixed dir eval issue #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
jobs: | |
# oldest targets | |
macos-11: | |
runs-on: ${{matrix.OS}} | |
strategy: | |
fail-fast: false | |
matrix: | |
OS: [macOS-11] | |
SDK: ["macosx"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
pushd Example | |
pod install | |
popd | |
- name: Build and test | |
run: | | |
echo "Disabling modern build system as a workaround for target issue in Xcode 10+" | |
USEMODERNBUILDSYSTEM="-UseModernBuildSystem=NO" | |
if [ ${{ matrix.SDK }} == "macosx" ]; then | |
SCHEME="ObjectiveCExample_macOS" | |
SDK="macosx" | |
DESTINATION="platform=macosx" | |
fi | |
# build and test | |
CONFIGURATION="Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES" | |
xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -sdk $SDK -destination "$DESTINATION" -configuration $CONFIGURATION $USEMODERNBUILDSYSTEM test | |
# newest targets | |
macos-14: | |
runs-on: ${{matrix.OS}} | |
strategy: | |
fail-fast: false | |
matrix: | |
OS: [macOS-14] | |
SDK: ["appletvsimulator", "iphonesimulator", "watchsimulator", "xrsimulator"] | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.3.0' | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
pushd Example | |
pod install | |
popd | |
- name: Build and test | |
run: | | |
if [ ${{ matrix.SDK }} == "appletvsimulator" ]; then | |
SCHEME="ObjectiveCExample_tvOS" | |
SDK="appletvsimulator" | |
PLATFORM="tvOS Simulator" | |
DEVICE="Apple TV 4K (3rd generation) (at 1080p)" | |
DESTINATION="platform=$PLATFORM,name=$DEVICE" | |
fi | |
if [ ${{ matrix.SDK }} == "iphonesimulator" ]; then | |
SCHEME="ObjectiveCExample_iOS" | |
SDK="iphonesimulator" | |
PLATFORM="iOS Simulator" | |
DEVICE="iPhone 15 Pro Max" | |
DESTINATION="platform=$PLATFORM,name=$DEVICE" | |
fi | |
if [ ${{ matrix.SDK }} == "watchsimulator" ]; then | |
SCHEME="ObjectiveCExample_watchOS" | |
SDK="watchsimulator" | |
PLATFORM="watchOS Simulator" | |
DEVICE="Apple Watch Ultra 2 (49mm)" | |
DESTINATION="platform=$PLATFORM,name=$DEVICE" | |
fi | |
if [ ${{ matrix.SDK }} == "xrsimulator" ]; then | |
SCHEME="ObjectiveCExample_visionOS" | |
SDK="xrsimulator" | |
PLATFORM="visionOS Simulator" | |
DEVICE="Apple Vision Pro" | |
DESTINATION="platform=$PLATFORM,name=$DEVICE" | |
fi | |
# build and test | |
CONFIGURATION="Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES" | |
xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -sdk $SDK -destination "$DESTINATION" -configuration $CONFIGURATION $USEMODERNBUILDSYSTEM test |