Skip to content

Update ci.yml

Update ci.yml #52

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-on-macos:
strategy:
matrix:
xcode-version: ['16.0', '15.4', '15.2', '14.3.1']
runs-on: macos-latest
timeout-minutes: 3
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode-version }}.app
steps:
- uses: actions/checkout@v4
- name: Run swift build
run: swift build
- name: Run swift test
run: swift test
test-on-linux:
strategy:
matrix:
swift-version: ['6.0-snapshot', '5.10.1', '5.9.2', '5.8.1']
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: Install Swift ${{ matrix.swift-version }}
run: |
curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash -s -- -y
swiftly install ${{ matrix.swift-version }}
- name: Run swift --version
run: swift --version
- name: Run swift build
run: swift build
- name: Run swift test
if: matrix.swift-version == '6.0-snapshot'
run: swift test --enable-swift-testing