Skip to content

Merge pull request #68 from SwiftPackageIndex/fix-ci #224

Merge pull request #68 from SwiftPackageIndex/fix-ci

Merge pull request #68 from SwiftPackageIndex/fix-ci #224

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-latest, ubuntu-latest]
swift-version: ['6.0.0', '6.1.0']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- name: Echo Swift version
run: swift --version
- name: Check a Release build
run: swift build --disable-automatic-resolution -c release
test:
strategy:
matrix:
# https://github.com/actions/virtual-environments
os: [macos-latest, ubuntu-latest]
swift-version: ['6.0.0', '6.1.0']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- name: Echo Swift version
run: swift --version
- name: Test
run: swift test --disable-automatic-resolution