Skip to content

Update ci.yml

Update ci.yml #43

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
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: ['5.6.3', '5.7.3', '5.8.1', '5.9.2', '5.10.1', '6.0-snapshot']
runs-on: ubuntu-20.04
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 }}
swiftly use ${{ matrix.swift-version }}
- name: Run swift --version
run: swift --version
- name: Run swift build
run: swift build
- name: Run swift test
run: swift test