Skip to content

Commit

Permalink
Try to fix CI (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Apr 24, 2024
1 parent b433362 commit 763878a
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,25 @@ on:
branches: [main]

jobs:
# Run swift test across all applicable platforms and versions.
swift_test:
name: Test
uses: AudioKit/ci/.github/workflows/swift_test.yml@main
with:
scheme: Flow
platforms: iOS macOS
runs-on: macos-latest
steps:
- name: Check out Flow
uses: actions/checkout@v4
- name: Test Flow
run: swift test -c release

# Build the demo projects.
build_demo:
name: Build ${{ matrix.scheme }} (Xcode ${{ matrix.xcode_version }})
# NOTE: macos-latest is NOT equivalent to macos-12 as of September 2022.
# Source: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: macos-13
name: Build Demo
runs-on: macos-latest
needs: [swift_test]
strategy:
# Setting 'fail-fast' to 'true' implies the build will fail the first time it encounters an error.
fail-fast: true
matrix:
scheme:
- FlowDemo (iOS)
- FlowDemo (macOS)
steps:
- name: Check out Flow
uses: actions/checkout@v4
- name: Build Demo
uses: AudioKit/ci/.github/actions/build-demo@main
with:
project: Demo/FlowDemo.xcodeproj
scheme: ${{ matrix.scheme }}
xcode_version: ${{ matrix.xcode_version }}
run: xcodebuild build -project Demo/FlowDemo.xcodeproj -scheme FlowDemo -destination "name=My Mac"

# Send notification to Discord on failure.
send_notification:
Expand Down

0 comments on commit 763878a

Please sign in to comment.