Skip to content

Fix tests and a crash under linux and swift 6 (#38) #47

Fix tests and a crash under linux and swift 6 (#38)

Fix tests and a crash under linux and swift 6 (#38) #47

Workflow file for this run

name: SwiftPM
on:
push:
branches:
- main
paths:
- '.github/workflows/swiftpm.yml'
- 'Examples/**/*.swift'
- 'Package*'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
pull_request:
paths:
- '.github/workflows/swiftpm.yml'
- 'Examples/**/*.swift'
- 'Package*'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
workflow_dispatch: ~
concurrency:
group: swiftpm-${{ github.ref }}
cancel-in-progress: true
jobs:
macOS:
runs-on: macos-14
strategy:
matrix:
xcode: ['15.4', '16.0']
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- run: swift -version
- run: swift test --parallel
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
tag: ['5.9', '6.0']
container:
image: swift:${{ matrix.tag }}-focal
steps:
- uses: actions/checkout@v4
- run: swift test --parallel