Skip to content

Better solution than specifying a patch version! #41

Better solution than specifying a patch version!

Better solution than specifying a patch version! #41

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
push:
jobs:
build-release:
strategy:
matrix:
# https://github.com/actions/virtual-environments
os: [macos-12, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: fwal/setup-swift@v2
- name: Echo Swift version
run: swift --version
- name: Check a Release build
run: swift build --disable-automatic-resolution -c release
run-tests:
strategy:
matrix:
# We don't need anything specific in 5.10.1, but 5.10 collapses to 5.1 when `swift-setup` runs.
swift-version: ['5.6', '5.7', '5.8', '5.9', '5.10']
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: fwal/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- name: Echo Swift version
run: swift --version
- name: Test
run: swift test