diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb81d264..865e0aba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,13 +9,12 @@ on: jobs: test: - runs-on: macos-13 + runs-on: macos-15 env: RUNALL: "true" steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - name: Run tests run: swift test generator-tests: diff --git a/Package.swift b/Package.swift index 35292fd2..4002074a 100644 --- a/Package.swift +++ b/Package.swift @@ -49,11 +49,13 @@ let practiceExerciseTargets: [Target] = practiceExercises.flatMap { return [ .target( name:"\($0.pascalCased)", + dependencies: [.product(name: "Numerics", package: "swift-numerics")], path:"./exercises/practice/\($0)/.meta/Sources"), .testTarget( name:"\($0.pascalCased)Tests", dependencies: [ - .target(name:"\($0.pascalCased)") + .target(name:"\($0.pascalCased)"), + .product(name: "Numerics", package: "swift-numerics") ], path:"./exercises/practice/\($0)/Tests") ] @@ -68,5 +70,6 @@ let package = Package( name: "xswift", targets: allTargets.filter { $0.type == .regular }.map { $0.name }) ], + dependencies: [.package(url: "https://github.com/apple/swift-numerics", from: "1.0.2")], targets: allTargets )