chore: recommended xcode settings #181
Workflow file for this run
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: Main | |
on: [push, pull_request] | |
jobs: | |
mac-test: | |
name: Mac Test | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
include: | |
- platform: macOS | |
scheme: "SWXMLHash OSX" | |
- platform: iOS | |
scheme: "SWXMLHash iOS" | |
- platform: tvOS | |
scheme: "SWXMLHash tvOS" | |
- platform: watchOS | |
scheme: "SWXMLHash watchOS" | |
swift: | |
- ~5.4 | |
- ^6 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16.0-beta' | |
- uses: mxcl/xcodebuild@v3.0.0 | |
with: | |
platform: ${{ matrix.platform }} | |
workspace: "SWXMLHash.xcworkspace" | |
linux-test: | |
name: Linux Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- image: swift:5.8-focal | |
- image: swift:5.8-jammy | |
- image: swift:5.8-rhel-ubi9 | |
- image: swift:5.9-focal | |
- image: swift:5.9-jammy | |
- image: swift:5.9-rhel-ubi9 | |
- image: swift:5.10-focal | |
- image: swift:5.10-jammy | |
- image: swift:5.10-rhel-ubi9 | |
- image: swiftlang/swift:nightly-focal | |
- image: swiftlang/swift:nightly-jammy | |
container: | |
image: ${{ matrix.image }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and test | |
run: | | |
swift build --build-tests | |
swift test | |
windows-test: | |
name: Windows Test | |
runs-on: windows-latest | |
steps: | |
- name: Install Swift | |
uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-5.8-release | |
tag: 5.8-RELEASE | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and test | |
run: swift test |