Skip to content

Commit

Permalink
Hand-tweaked workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Feb 13, 2025
1 parent c1adfed commit ca9a8e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 45 deletions.
52 changes: 12 additions & 40 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,24 @@ on: [push, pull_request]

jobs:

macOS-swift-53:
name: macOS (Swift 5.3)
runs-on: macos-11
macOS-swift-6:
name: macOS (Swift 6)
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_12.4.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
name: logs
path: logs


macOS-swift-56:
name: macOS (Swift 5.6)
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v1
xcode-version: "16.2"
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_13.2.1.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Build (Release)
run: swift build --configuration release
- name: Test (Debug)
run: swift test --disable-xctest
- name: Upload Logs
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: always()
with:
name: logs
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
[comment]: <> (Header Generated by ActionStatus 2.0.6 - 478)

[![Test results][tests shield]][actions] [![Latest release][release shield]][releases] [![swift 5.3 shield] ![swift 5.4 shield] ![swift 5.5 shield] ![swift 5.6 shield]][swift] ![Platforms: macOS][platforms shield]
[![Test results][tests shield]][actions] [![Latest release][release shield]][releases] [![swift 6.0 shield]][swift] ![Platforms: macOS][platforms shield]

[release shield]: https://img.shields.io/github/v/release/elegantchaos/ReleaseTools
[platforms shield]: https://img.shields.io/badge/platforms-macOS-lightgrey.svg?style=flat "macOS"
[tests shield]: https://github.com/elegantchaos/ReleaseTools/workflows/Tests/badge.svg
[swift 5.3 shield]: https://img.shields.io/badge/swift-5.3-F05138.svg "Swift 5.3"
[swift 5.4 shield]: https://img.shields.io/badge/swift-5.4-F05138.svg "Swift 5.4"
[swift 5.5 shield]: https://img.shields.io/badge/swift-5.5-F05138.svg "Swift 5.5"
[swift 5.6 shield]: https://img.shields.io/badge/swift-5.6-F05138.svg "Swift 5.6"
[swift 6.0 shield]: https://img.shields.io/badge/swift-6.0-F05138.svg "Swift 6.0"

[swift]: https://swift.org
[releases]: https://github.com/elegantchaos/ReleaseTools/releases
Expand Down

0 comments on commit ca9a8e2

Please sign in to comment.