From 7dd4907de1124a756eaff4228cf287d6ccc2fc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Sun, 15 Sep 2024 23:54:19 +0200 Subject: [PATCH] Moving github actions from macOS 11 to 12 (#713) --- .github/workflows/actions.yml | 19 +++--- .../xcschemes/ObjectiveCExample_iOS.xcscheme | 60 +++---------------- .../xcschemes/ObjectiveCExample_tvOS.xcscheme | 19 +++--- .../ObjectiveCExample_visionOS.xcscheme | 5 +- .../ObjectiveCExample_watchOS.xcscheme | 5 +- .../xcschemes/SwiftExample_iOS.xcscheme | 29 ++------- 6 files changed, 38 insertions(+), 99 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 755829b..2b48e5e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -9,13 +9,15 @@ on: tags: - '*' jobs: + # available images: https://github.com/actions/runner-images + # oldest targets - macos-11: + macos-12: runs-on: ${{matrix.OS}} strategy: fail-fast: false matrix: - OS: [macOS-11] + OS: [macOS-12] SDK: ["macosx"] steps: - uses: actions/checkout@v4 @@ -26,17 +28,16 @@ jobs: 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" + PLATFORM="macOS" + ARCH="x86_64" + DESTINATION="platform=$PLATFORM,arch=$ARCH" 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 + xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -destination "$DESTINATION" -configuration $CONFIGURATION test # newest targets macos-14: @@ -49,7 +50,7 @@ jobs: steps: - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '15.3.0' + xcode-version: '15.4.0' - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -89,4 +90,4 @@ jobs: # 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 + xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -sdk $SDK -destination "$DESTINATION" -configuration $CONFIGURATION test diff --git a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_iOS.xcscheme b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_iOS.xcscheme index 4e37043..18df66e 100644 --- a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_iOS.xcscheme +++ b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_iOS.xcscheme @@ -1,38 +1,20 @@ + LastUpgradeVersion = "1600" + version = "2.2"> + buildImplicitDependencies = "YES" + buildArchitectures = "Automatic"> - - - - - - + + @@ -40,7 +22,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + shouldAutocreateTestPlan = "YES"> @@ -64,23 +47,6 @@ debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> - - - - - - - - - - - - diff --git a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_tvOS.xcscheme b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_tvOS.xcscheme index 8490ea7..40d6823 100644 --- a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_tvOS.xcscheme +++ b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_tvOS.xcscheme @@ -1,10 +1,11 @@ + LastUpgradeVersion = "1600" + version = "2.2"> + buildImplicitDependencies = "YES" + buildArchitectures = "Automatic"> - - + + @@ -26,7 +22,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + shouldAutocreateTestPlan = "YES"> diff --git a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_visionOS.xcscheme b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_visionOS.xcscheme index a43e824..99aee00 100644 --- a/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_visionOS.xcscheme +++ b/Example/ZipArchiveExample.xcodeproj/xcshareddata/xcschemes/ObjectiveCExample_visionOS.xcscheme @@ -1,10 +1,11 @@ + buildImplicitDependencies = "YES" + buildArchitectures = "Automatic"> + buildImplicitDependencies = "YES" + buildArchitectures = "Automatic"> + LastUpgradeVersion = "1600" + version = "1.7"> + buildImplicitDependencies = "YES" + buildArchitectures = "Automatic"> - - - - - - + shouldUseLaunchSchemeArgsEnv = "YES" + shouldAutocreateTestPlan = "YES"> - - - -