diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 3a3cdaa..4c51e97 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -10,12 +10,19 @@ on: branches: [ "main" ] jobs: - build: - - runs-on: macos-latest + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.8", "5.9", "5.10"] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - uses: swift-actions/setup-swift@v2 + with: + swift-version: ${{ matrix.swift }} - name: Build run: swift build -v - name: Run tests