This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Aware 1.2.0 #154
Workflow file for this run
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: [push] | |
env: | |
CI_DERIVED_DATA_PATH: "${{ github.workspace }}/DerivedData" | |
CI_RESULT_BUNDLE_PATH: "${{ github.workspace }}/resultbundle.xcresult" | |
CI_XCODE_PROJECT: Aware.xcodeproj | |
CI_XCODE_SCHEME: Aware | |
jobs: | |
build: | |
runs-on: macos-14 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Xcode version | |
run: sudo xcode-select --switch /Applications/Xcode_15.3.app | |
- name: Print Xcode version | |
run: xcodebuild -version -sdk | |
- name: Resolve package dependencies | |
run: | | |
xcodebuild -resolvePackageDependencies \ | |
-project "$CI_XCODE_PROJECT" \ | |
-scheme "$CI_XCODE_SCHEME" \ | |
-derivedDataPath "$CI_DERIVED_DATA_PATH" \ | |
| xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Build | |
run: | | |
xcodebuild build-for-testing \ | |
-scheme "$CI_XCODE_SCHEME" \ | |
-project "$CI_XCODE_PROJECT" \ | |
-derivedDataPath "$CI_DERIVED_DATA_PATH" \ | |
-resultBundlePath "build-for-testing.xcresult" \ | |
CODE_SIGN_IDENTITY=- \ | |
AD_HOC_CODE_SIGNING_ALLOWED=YES \ | |
| xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Test | |
run: | | |
xcodebuild test-without-building \ | |
-scheme "$CI_XCODE_SCHEME" \ | |
-project "$CI_XCODE_PROJECT" \ | |
-derivedDataPath "$CI_DERIVED_DATA_PATH" \ | |
-resultBundlePath "test-without-building.xcresult" \ | |
-test-timeouts-enabled YES \ | |
-maximum-test-execution-time-allowance 1800 \ | |
| xcpretty | |
exit ${PIPESTATUS[0]} | |
- name: Upload xcresult | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.platform }}-test-xcresult | |
path: "*.xcresult" | |
if-no-files-found: error | |
retention-days: 7 |