From 397467e6d7ed7c75bef34e7c5fad04146fb497df Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 1 Jan 2021 19:54:10 -0800 Subject: [PATCH] Specify Xcode version to use instead of macOS version It is more important OS version is stable in their virtual environment setup. --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75e43c35..ea1d869d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,9 @@ jobs: build: strategy: matrix: - os: [macos-11.0, macos-10.15] + xcode: ['/Applications/Xcode_12.2.app/Contents/Developer', '/Applications/Xcode_11.7.app/Contents/Developer'] name: Build and Test Sparkle - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Checkout @@ -20,15 +20,23 @@ jobs: with: submodules: true - name: Build Unit Tests + env: + DEVELOPER_DIR: ${{ matrix.xcode }} run: | xcodebuild build-for-testing -project Sparkle.xcodeproj -scheme Distribution -enableCodeCoverage YES -derivedDataPath build - name: Run Unit Tests + env: + DEVELOPER_DIR: ${{ matrix.xcode }} run: | xcodebuild test-without-building -project Sparkle.xcodeproj -scheme Distribution -enableCodeCoverage YES -derivedDataPath build - name: Build UI Tests + env: + DEVELOPER_DIR: ${{ matrix.xcode }} run: | xcodebuild build-for-testing -project Sparkle.xcodeproj -scheme UITests -configuration Debug -derivedDataPath build - name: Run UI Tests + env: + DEVELOPER_DIR: ${{ matrix.xcode }} run: | xcodebuild test-without-building -project Sparkle.xcodeproj -scheme UITests -configuration Debug -derivedDataPath build - name: Archive Test Results