Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday authored Dec 31, 2024
1 parent fa7d51e commit b973923
Showing 1 changed file with 6 additions and 38 deletions.
44 changes: 6 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,10 @@ on:
branches: [main]

jobs:
swift_test:
name: Test
uses: AudioKit/ci/.github/workflows/swift_test.yml@main
with:
scheme: PianoRoll
platforms: iOS macOS
swift-versions: 5.5 5.6

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-12
needs: [swift_test]
strategy:
# Disabling fail-fast ensures that the job will run all configurations of the matrix, even if one fails.
fail-fast: false
matrix:
scheme:
- PianoRollDemo (iOS)
- PianoRollDemo (macOS)
xcode_version:
- '13.2' # swift 5.5
- '13.4' # swift 5.6
build:
runs-on: macos-latest
steps:
- name: Build Demo
uses: AudioKit/ci/.github/actions/build-demo@main
with:
project: Demo/PianoRollDemo.xcodeproj
scheme: ${{ matrix.scheme }}
xcode_version: ${{ matrix.xcode_version }}

# Send notification to Discord on failure.
send_notification:
name: Send Notification
uses: AudioKit/ci/.github/workflows/send_notification.yml@main
needs: [swift_test, build_demo]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
secrets: inherit
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: swift build

0 comments on commit b973923

Please sign in to comment.