👷 Optimize CI builds #10
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
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
id-token: write | |
concurrency: | |
group: "CI" | |
jobs: | |
build: | |
runs-on: macos-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Select Xcode version | |
run: sudo xcode-select -s /Applications/Xcode_15.4.app | |
- name: Build and Tests | |
run: xcodebuild build -scheme HUDHero -sdk iphonesimulator17.5 -destination "OS=17.5,name=iPhone 15 Pro" -resultBundlePath HUDHero.xcresult test | |
- name: Display test results | |
uses: jobearrr/xcresulttool@v1 | |
with: | |
path: HUDHero.xcresult | |
if: success() || failure() |