Mix EOF support !!! #72
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/README.md' | |
| - 'CONTRIBUTING.md' | |
| - 'CODE_OF_CONDUCT.md' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/README.md' | |
| - 'CONTRIBUTING.md' | |
| - 'CODE_OF_CONDUCT.md' | |
| jobs: | |
| macos-15: | |
| name: Build macOS 15 (Swift 6.0) | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build | |
| run: swift build -v | |
| - name: Run tests | |
| run: swift test -v | |
| ios-15: | |
| name: Build on iOS 15 | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Create Downloads directory | |
| run: mkdir -p ~/Downloads | |
| - name: Restore cached iOS simulator runtime | |
| id: cache-restore | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/Downloads | |
| key: ios-runtime-15.5-${{ runner.os }}-${{ hashFiles('**/ci.yml') }} | |
| restore-keys: | | |
| ios-runtime-15.5-${{ runner.os }}- | |
| ios-runtime-15.5- | |
| - name: Set up iOS 15 simulator runtime | |
| run: sudo xcodes runtimes install "iOS 15.5" --directory ~/Downloads --keep-archive | |
| - name: Build | |
| run: xcodebuild build -scheme EventSource -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13 Pro,OS=15.5' | |
| - name: Run tests | |
| run: xcodebuild test -scheme EventSource -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13 Pro,OS=15.5' | |
| ubuntu: | |
| name: Build Linux | |
| runs-on: ubuntu-latest | |
| container: | |
| image: swift:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: swift build -v | |
| - name: Run tests | |
| run: swift test -v |