Use Ubuntu 22 to Match Docker #313
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift CI | |
on: [push] | |
jobs: | |
linuxBuild: | |
name: Swift ${{ matrix.swift-version }} (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
swift-version: [6.0.2] | |
os: [ubuntu-22.04] | |
steps: | |
- name: Install Swift | |
uses: YOCKOW/Action-setup-swift@v1 | |
with: | |
swift-version: ${{ matrix.swift-version }} | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Swift Package Information | |
run: | | |
swift --version | |
swift package show-dependencies | |
- name: Build | |
run: swift build --build-tests | |
- name: Test | |
run: swift test | |
- name: SwiftLint | |
uses: norio-nomura/action-swiftlint@3.2.1 | |
env: | |
WORKING_DIRECTORY: Sources | |
macOSBuild: | |
name: macOS 14 - Latest Xcode | |
runs-on: macOS-14 | |
steps: | |
- name: Configure Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 'latest-stable' | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Swift Package Information | |
run: | | |
swift --version | |
swift package show-dependencies | |
- name: Build | |
run: swift build | |
- name: Test | |
run: swift test -Xlinker -rpath -Xlinker "$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.9/macosx" |