diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 440e6c42..6e3e7462 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,3 +76,62 @@ jobs: branch: ${{ matrix.branch }} - uses: actions/checkout@v3 - run: swift test + + command-line-tool: + strategy: + fail-fast: false + matrix: + macos: + - 13 + xcode: + - latest-stable + runs-on: macos-${{ matrix.macos }} + steps: + - name: Select Xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ matrix.xcode }} + - name: Checkout + uses: actions/checkout@v2 + - name: Build Command Line Tool + run: xcodebuild -project SwiftFormat.xcodeproj -scheme "SwiftFormat (Command Line Tool)" -sdk macosx clean build + + swiftformat-for-xcode: + strategy: + fail-fast: false + matrix: + macos: + - 13 + xcode: + - latest-stable + runs-on: macos-${{ matrix.macos }} + steps: + - name: Select Xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ matrix.xcode }} + - name: Checkout + uses: actions/checkout@v2 + - name: Build Swift Format for Xcode app + run: xcodebuild -project SwiftFormat.xcodeproj -scheme "SwiftFormat for Xcode" -sdk macosx clean build + + editor-extension: + strategy: + fail-fast: false + matrix: + macos: + - 13 + xcode: + - latest-stable + runs-on: macos-${{ matrix.macos }} + steps: + - name: Select Xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ matrix.xcode }} + - name: Checkout + uses: actions/checkout@v2 + - name: Build Editor Extension + run: xcodebuild -project SwiftFormat.xcodeproj -scheme "SwiftFormat (Editor Extension)" -sdk macosx clean build + + \ No newline at end of file diff --git a/SwiftFormat.xcodeproj/xcshareddata/xcschemes/SwiftFormat (Editor Extension).xcscheme b/SwiftFormat.xcodeproj/xcshareddata/xcschemes/SwiftFormat (Editor Extension).xcscheme index 594dde55..babdba5d 100644 --- a/SwiftFormat.xcodeproj/xcshareddata/xcschemes/SwiftFormat (Editor Extension).xcscheme +++ b/SwiftFormat.xcodeproj/xcshareddata/xcschemes/SwiftFormat (Editor Extension).xcscheme @@ -55,7 +55,7 @@