From 9f0ae29dc23e044f16fff4e75818306aaafa6eff Mon Sep 17 00:00:00 2001 From: Aurelius Prochazka Date: Tue, 23 Apr 2024 23:56:41 -0700 Subject: [PATCH] Simplify CI a la Flow --- .github/workflows/tests.yml | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 08e6227..d3a4078 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,33 +10,23 @@ on: jobs: swift_test: name: Test - uses: AudioKit/ci/.github/workflows/swift_test.yml@main - with: - scheme: Keyboard - platforms: iOS macOS - swift-versions: 5.9 + runs-on: macos-latest + steps: + - name: Check out Keyboard + uses: actions/checkout@v4 + - name: Test Keyboard + 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-12 + name: Build Demo + runs-on: macos-latest 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: - - KeyboardDemo (iOS) - - KeyboardDemo (macOS) - steps: + - name: Check out Keyboard + uses: actions/checkout@v4 - name: Build Demo - uses: AudioKit/ci/.github/actions/build-demo@main - with: - project: Demo/KeyboardDemo.xcodeproj - scheme: ${{ matrix.scheme }} - xcode_version: ${{ matrix.xcode_version }} + run: xcodebuild build -project Demo/KeyboardDemo.xcodeproj -scheme KeyboardDemo -destination "name=My Mac" # Send notification to Discord on failure. send_notification: