Skip to content

Commit

Permalink
Fix GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DePasqualeOrg committed Dec 26, 2024
1 parent 6dbe4c4 commit 0bacf0e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,33 @@ on:

jobs:
build:
name: Swift ${{ matrix.swift }}
name: Swift ${{ matrix.swift }} on Xcode ${{ matrix.xcode }}
strategy:
matrix:
swift: ["5.8", "5.9", "5.10"]
include:
- swift: "5.9"
xcode: "15.2"
- swift: "5.10"
xcode: "15.2"
runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: Setup Swift
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app

- name: Set up Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}

- if: ${{ matrix.swift == '5.8' }}
name: Xcode Select
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app
- name: Install swift-format
run: brew install swift-format

- name: Run swift-format
if: ${{ matrix.swift == '5.9' }}
run: swift-format lint --recursive .

- name: Build
run: swift build -v
Expand Down

0 comments on commit 0bacf0e

Please sign in to comment.