Skip to content

Commit

Permalink
Try setup Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBucher12 committed Jan 12, 2024
1 parent d0a7f1e commit 2652a48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/actions/xcode-select/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "Configure: Xcode version"

runs:
using: "composite"
steps:
- name: "Configure: Xcode version"
shell: bash
# for Xcode path, see https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#xcode
run: echo "DEVELOPER_DIR=/Applications/Xcode_15.0.app" >> $GITHUB_ENV
23 changes: 14 additions & 9 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ on:

jobs:
build:
runs-on: macos-13
runs-on: macos-latest
steps:
- name: List Xcode installations
run: sudo ls -1 /Applications | grep "Xcode"
- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- name: Select Xcode version
uses: ./.github/actions/xcode-select
- uses: actions/checkout@v3
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:
swift-version: "5.8"
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

0 comments on commit 2652a48

Please sign in to comment.