Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cabmatthew authored Dec 11, 2024
1 parent 2fe1b92 commit d89210b
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
# 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: Swift

on:
workflow_dispatch:
push:
branches: [ "main" ]
branches: [ main ]
pull_request:
branches: [ "main" ]
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

name: Build and test
runs-on: macos-14

steps:
- uses: actions/checkout@v3

- name: Xcode Setup
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'

- name: Build
run: |
cd GitHubActions
xcodebuild build -project GitHubActions.xcodeproj -scheme GitHubActions clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No
- uses: actions/checkout@v4
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_16.0.app/Contents/Developer
- name: Show current version of Xcode
run: xcodebuild -version
- name: Run tests
run: |
cd GitHubActions
xcodebuild test -project GitHubActions.xcodeproj -scheme GitHubActions clean build -sdk iphoneos -destination "platform=iOS Simulator,OS=16.1,name=iPhone 14 Pro Max" CODE_SIGNING_ALLOWED=No
run: ./run_tests.sh

0 comments on commit d89210b

Please sign in to comment.