From 2843a524d8c03c8e149d99f0cd6abf5a49aea12c Mon Sep 17 00:00:00 2001 From: Robert MacEachern Date: Mon, 12 Feb 2024 09:37:06 -0600 Subject: [PATCH] Reenable ios 14-16 jobs --- .github/workflows/run_tests.yml | 199 +++++++++++++++----------------- 1 file changed, 95 insertions(+), 104 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index fe4aef6d..dc5e9dc1 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -65,143 +65,134 @@ jobs: - name: Run Tests run: Scripts/run_ios17_tests.sh - # ios_16: - # name: iOS 16 + ios_16: + name: iOS 16 - # runs-on: macos-13-xlarge + runs-on: macos-13-xlarge - # steps: - # - name: Switch To Xcode 15.1 - # run: sudo xcode-select -switch /Applications/Xcode_15.1.app + steps: - # - name: Checkout repository - # uses: actions/checkout@v1 + - name: Checkout repository + uses: actions/checkout@v1 - # # Build Caching + - name: Read env + run: cat .github/workflows/env.properties >> $GITHUB_ENV - # - name: Cache Bundler - # uses: actions/cache@v2 - # with: - # path: vendor/bundle - # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-gems- + - name: Switch to Xcode ${{ env.xcode_version }} + run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app - # - name: Cache Cocoapods - # uses: actions/cache@v2 - # with: - # path: Pods - # key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-pods- + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + # Uses version specified in .ruby_version + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - # # Install & Build + # Build Caching - # - name: Bundle install - # run: | - # bundle config path vendor/bundle - # bundle install --jobs 4 --retry 3 + - name: Cache Cocoapods + uses: actions/cache@v2 + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- - # - name: Pod Install - # run: bundle exec pod install --repo-update + # Install & Build - # - name: Run Tests - # run: Scripts/run_ios16_tests.sh + - name: Pod Install + run: bundle exec pod install --repo-update - # ios_15: - # name: iOS 15 + - name: Run Tests + run: Scripts/run_ios16_tests.sh - # runs-on: macos-13-xlarge + ios_15: + name: iOS 15 - # steps: - # - name: Switch To Xcode 15.1 - # run: sudo xcode-select -switch /Applications/Xcode_15.1.app + runs-on: macos-13-xlarge - # - name: Install xcodes - # run: brew install aria2 xcodesorg/made/xcodes + steps: - # - name: Install iOS ${{ matrix.sdk }} - # run: sudo xcodes runtimes install "iOS 15.2" + - name: Checkout repository + uses: actions/checkout@v1 - # - name: Checkout repository - # uses: actions/checkout@v1 + - name: Read env + run: cat .github/workflows/env.properties >> $GITHUB_ENV + + - name: Switch to Xcode ${{ env.xcode_version }} + run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app + + - name: Install xcodes + run: brew install aria2 xcodesorg/made/xcodes - # # Build Caching + - name: Install iOS ${{ matrix.sdk }} + run: sudo xcodes runtimes install "iOS 15.2" + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + # Uses version specified in .ruby_version + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - # - name: Cache Bundler - # uses: actions/cache@v2 - # with: - # path: vendor/bundle - # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-gems- + # Build Caching - # - name: Cache Cocoapods - # uses: actions/cache@v2 - # with: - # path: Pods - # key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-pods- + - name: Cache Cocoapods + uses: actions/cache@v2 + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- - # # Install & Build + # Install & Build - # - name: Bundle install - # run: | - # bundle config path vendor/bundle - # bundle install --jobs 4 --retry 3 + - name: Pod Install + run: bundle exec pod install --repo-update - # - name: Pod Install - # run: bundle exec pod install --repo-update + - name: Run Tests + run: Scripts/run_ios15_tests.sh - # - name: Run Tests - # run: Scripts/run_ios15_tests.sh + ios_14: + name: iOS 14 - # ios_14: - # name: iOS 14 + runs-on: macos-13-xlarge - # runs-on: macos-13-xlarge + steps: - # steps: - # - name: Switch To Xcode 14 - # run: sudo xcode-select -switch /Applications/Xcode_15.1.app + - name: Checkout repository + uses: actions/checkout@v1 - # - name: Install xcodes - # run: brew install aria2 xcodesorg/made/xcodes + - name: Read env + run: cat .github/workflows/env.properties >> $GITHUB_ENV - # - name: Install iOS ${{ matrix.sdk }} - # run: sudo xcodes runtimes install "iOS 14.5" + - name: Switch to Xcode ${{ env.xcode_version }} + run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app - # - name: Checkout repository - # uses: actions/checkout@v1 + - name: Install xcodes + run: brew install aria2 xcodesorg/made/xcodes - # # Build Caching + - name: Install iOS ${{ matrix.sdk }} + run: sudo xcodes runtimes install "iOS 14.5" - # - name: Cache Bundler - # uses: actions/cache@v2 - # with: - # path: vendor/bundle - # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-gems- + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + # Uses version specified in .ruby_version + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - # - name: Cache Cocoapods - # uses: actions/cache@v2 - # with: - # path: Pods - # key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-pods- + # Build Caching - # # Install & Build + - name: Cache Cocoapods + uses: actions/cache@v2 + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- - # - name: Bundle install - # run: | - # bundle config path vendor/bundle - # bundle install --jobs 4 --retry 3 + # Install & Build - # - name: Pod Install - # run: bundle exec pod install --repo-update + - name: Pod Install + run: bundle exec pod install --repo-update - # - name: Run Tests - # run: Scripts/run_ios14_tests.sh + - name: Run Tests + run: Scripts/run_ios14_tests.sh