Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitris-c authored May 16, 2024
1 parent de2c04c commit 94bc48c
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,34 @@ on:
branches:
- '*'

# jobs:
# iOS:
# name: Test iOS
# runs-on: macOS-latest
# env:
# DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
# strategy:
# matrix:
# destination: ["OS=latest,name=iPhone 13 Pro"]
# steps:
# - uses: actions/checkout@v2
# - name: iOS - ${{ matrix.destination }}
# run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "AudioStreaming.xcodeproj" -scheme "AudioStreaming" -destination "${{ matrix.destination }}" clean test | xcpretty

jobs:
iOS:
name: Test iOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
destination: ["OS=latest,name=iPhone 13 Pro"]
os: [macos-latest]
swift: ["5.9"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: iOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "AudioStreaming.xcodeproj" -scheme "AudioStreaming" -destination "${{ matrix.destination }}" clean test | xcpretty
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build
- name: Run tests
run: swift test

0 comments on commit 94bc48c

Please sign in to comment.