Skip to content

Commit

Permalink
Update macOS.yml (#2)
Browse files Browse the repository at this point in the history
* Update macOS.yml

* Update macOS.yml

* Update to Swift 6
  • Loading branch information
0xLeif authored Aug 8, 2024
1 parent 45495ac commit 4c669d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ name: macOS

on:
push:
branches: [ "main" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "main" ]

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
17 changes: 3 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.10
// swift-tools-version: 6.0

import PackageDescription

Expand All @@ -18,24 +18,13 @@ let package = Package(
targets: ["Later"]
)
],
dependencies: [
// Used for GitHub CI
.package(url: "https://github.com/swiftlang/swift-testing.git", exact: "0.8.0")
],
targets: [
.target(
name: "Later",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
name: "Later"
),
.testTarget(
name: "LaterTests",
dependencies: [
"Later",
// Used for GitHub CI
.product(name: "Testing", package: "swift-testing")
]
dependencies: ["Later"]
)
]
)

0 comments on commit 4c669d6

Please sign in to comment.