Enable upcoming feature ExistentialAny (#154) #442
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/actions/virtual-environments | |
name: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.app | |
jobs: | |
test: | |
name: Test | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
xcode_version: | |
- 15.4 | |
- 16 | |
platform: | |
- ios | |
- macos | |
- tvos | |
- watchos | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test library | |
run: scripts/test.sh library ${{ matrix.platform }} | |
test_examples: | |
name: Test examples | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test example iOS | |
run: scripts/test.sh example-ios ios | |
- name: Test example macOS | |
run: scripts/test.sh example-cross-platform macos | |
- name: Test example tvOS | |
run: scripts/test.sh example-cross-platform tvos | |
benchmark: | |
name: Benchmark | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run benchmark test | |
run: scripts/test.sh benchmark ios | |
validation: | |
name: Validation | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Show environments | |
run: | | |
swift --version | |
xcodebuild -version | |
- uses: actions/cache@v4 | |
with: | |
path: Tools/bin | |
key: spm-${{ runner.os }}-${{env.DEVELOPER_DIR}}-${{ hashFiles('Tools/Package.swift') }} | |
- name: Validate lint | |
run: make lint | |
- name: Validate format | |
run: | | |
make format | |
if [ -n "$(git status --porcelain)" ]; then git diff && echo "Make sure that the code is formated by 'make format'."; exit 1; fi | |
- name: Validate example project | |
run: | | |
make proj | |
if [ -n "$(git status --porcelain)" ]; then git diff && echo "Make sure that Xcode projects are formated by 'make proj'."; exit 1; fi |