Skip to content

Commit

Permalink
Updated GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Sep 17, 2022
1 parent 95e608e commit 49eae2e
Showing 1 changed file with 44 additions and 62 deletions.
106 changes: 44 additions & 62 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,48 @@ name: Swift
on: [push]

jobs:
mac:
name: macOS
strategy:
matrix:
swift: [5.6.3, 5.7]
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
uses: slashmo/[email protected]
with:
version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release
- name: Test (Debug)
run: swift test --configuration debug

macOS-swift:
name: macOS
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Xcode Version
run: |
xcodebuild -version
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release
- name: Test (Debug)
run: swift test --configuration debug
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing

linux-swift:
name: Linux (Swift 5.6.1)
runs-on: ubuntu-20.04
container: swift:5.6.1-focal
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release
- name: Test (Debug)
run: swift test --configuration debug --enable-code-coverage
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-code-coverage
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: swiftpm-build-ubuntu-x86_64
path: .build/*/*.xctest
- name: Coverage Report
uses: maxep/[email protected]

linux-swift-5_5:
name: Linux (Swift 5.5.3)
runs-on: ubuntu-20.04
container: swift:5.5.3-focal
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release
- name: Test (Debug)
run: swift test --configuration debug
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing
linux:
name: Linux
strategy:
matrix:
swift: [5.1.5, 5.5, 5.6.3, 5.7]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
uses: slashmo/[email protected]
with:
version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release
- name: Test (Debug)
run: swift test --configuration debug

0 comments on commit 49eae2e

Please sign in to comment.