Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYLABS-213 Upgrade with the new swift toolchain #22

Merged
merged 9 commits into from
Oct 16, 2024
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,40 @@ on:
push:
branches:
- master
paths:
- '**.swift'
- '**.yml'

pull_request:
branches:
- master
release:
types:
- created

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci
cancel-in-progress: true

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
linux:
name: Swift ${{ matrix.image }} on ubuntu-latest
runs-on: ubuntu-latest

strategy:
matrix:
os: [ubuntu-20.04, macos-11]
swift: ["5.5"]
image: ["swift:5.9", "swift:5.10", "swift:6.0"]

runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.image }}

steps:
- uses: fwal/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}


- name: Get swift version
run: swift --version

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Run tests
run: swift test