Skip to content

Added support for Xcode 16 and Swift 6 #194

Added support for Xcode 16 and Swift 6

Added support for Xcode 16 and Swift 6 #194

Workflow file for this run

name: macOS Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-changes:
name: Check for Changes
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changed:
- '.github/workflows/macos-tests.yml'
- '**/*.swift'
build-macos-matrix:
name: macOS Matrix
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: check-changes
strategy:
matrix:
xcode: [ "15.4", "16.0" ]
os: [ macos-14 ]
runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: |
set -o pipefail && \
NSUnbufferedIO=YES \
xcrun xcodebuild test -workspace . -scheme Vexil -skipMacroValidation -destination "platform=macOS,name=My Mac" \
| xcbeautify --renderer github-actions
build-macos:
runs-on: ubuntu-latest
name: macOS Tests
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: build-macos-matrix
steps:
- name: Check build matrix status
if: ${{ needs.build-macos-matrix.result == 'failure' }}
run: exit 1