⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: norio-nomura/[email protected]
macos-test:
strategy:
matrix:
swift-version:
- "5.9"
- "6.1"
- "6.2"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
- uses: actions/checkout@v6
- uses: swift-actions/setup-swift@v3
with:
swift-version: ${{ matrix.swift-version }}
- run: swift test
18 changes: 9 additions & 9 deletions .github/workflows/docc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
generate-docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
- uses: actions/checkout@v6
- uses: swift-actions/setup-swift@v3
with:
swift-version: "5.9"
swift-version: "6.2"
- name: generate-documentation
# https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/generating-documentation-for-hosting-online/
run: >
swift package
--allow-writing-to-directory ./docs
generate-documentation
--output-path ./docs
--hosting-base-path AccelerateArray
--disable-indexing
swift package
--allow-writing-to-directory ./docs
generate-documentation
--output-path ./docs
--hosting-base-path AccelerateArray
--disable-indexing
--transform-for-static-hosting
- name: generate theme-settings.json
run: echo '' > theme-settings.json
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*.log
*.bak

.swiftpm/
build

.DS_Store
.idea
docs
17 changes: 17 additions & 0 deletions .run/preview-documentation.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="preview-documentation" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="swift package --disable-sandbox preview-documentation" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="swift" />
<option name="SCRIPT_OPTIONS" value="package --disable-sandbox preview-documentation" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/usr/local/bin/bash" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>
15 changes: 4 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -11,17 +11,10 @@ let package = Package(
name: "AccelerateArray",
targets: ["AccelerateArray"]),
],
dependencies: {
dependencies: [
// https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/
var deps: [PackageDescription.Package.Dependency] = []
#if swift(>=5.6.0)
deps.append(
// .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
.package(url: "https://github.com/apple/swift-docc-plugin", branch: "main")
)
#endif
return deps
}(),
.package(url: "https://github.com/apple/swift-docc-plugin", branch: "main")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AccelerateArray

[![Swift Version](https://img.shields.io/badge/swift-5.9-blue.svg)](https://swift.org)
[![Swift Version](https://img.shields.io/badge/swift-6.2-blue.svg)](https://swift.org)
![Platform](https://img.shields.io/badge/platform-macOS-lightgray.svg)
![Build](https://github.com/dastrobu/AccelerateArray/actions/workflows/ci.yaml/badge.svg)

Expand Down
11 changes: 0 additions & 11 deletions Tests/AccelerateArrayTests/XCTestManifests.swift

This file was deleted.

11 changes: 0 additions & 11 deletions Tests/AccelerateArrayTests/cblas.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,4 @@ class CblasTests: XCTestCase {
XCTAssertEqual(a, [1, 2])
XCTAssertEqual(b, [11, 1, 16])
}

static var allTests: [(String, (CblasTests) -> () throws -> Void)] {
return [
("testScalFloat", testScalFloat),
("testScalDouble", testScalDouble),
("testSetFloat", testSetFloat),
("testSetDouble", testSetDouble),
("testAxpbyFloat", testAxpbyFloat),
("testAxpbyDouble", testAxpbyDouble),
]
}
}
13 changes: 0 additions & 13 deletions Tests/AccelerateArrayTests/lapack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,4 @@ class LapackTests: XCTestCase {

XCTAssertEqual(X1, X2, accuracy: 1e-15)
}

static var allTests: [(String, (LapackTests) -> () throws -> Void)] {
return [
("testGetrfFloat", testGetrfFloat),
("testGetriFloat", testGetriFloat),
("testGesvFloat", testGesvFloat),
("testGtsvFloat", testGtsvFloat),
("testGetrfDouble", testGetrfDouble),
("testGetriDouble", testGetriDouble),
("testGesvDouble", testGesvDouble),
("testGtsvDouble", testGtsvDouble),
]
}
}
2 changes: 1 addition & 1 deletion Tests/AccelerateArrayTests/test_support.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import XCTest
internal func XCTAssertEqual<T>(_ expression1: @autoclosure () throws -> [T],
_ expression2: @autoclosure () throws -> [T],
accuracy: T, _ message: @autoclosure () -> String = "",
file: StaticString = #file, line: UInt = #line) rethrows where T: FloatingPoint {
file: StaticString = #filePath, line: UInt = #line) rethrows where T: FloatingPoint {
let array1: [T] = try expression1()
let array2: [T] = try expression2()
XCTAssertEqual(array1.count, array2.count, file: file, line: line)
Expand Down
25 changes: 0 additions & 25 deletions Tests/AccelerateArrayTests/vDSP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,29 +176,4 @@ class VDSPTests: XCTestCase {
a.vpoly(b: b, c: &c, strideC: 2)
XCTAssertEqual(c, [3, 0, 5, 0])
}

static var allTests: [(String, (VDSPTests) -> () throws -> Void)] {
return [
("testVrampFloat", testVrampFloat),
("testVrampDouble", testVrampDouble),
("testMtransFloatWhenEmpty", testMtransFloatWhenEmpty),
("testMtransFloat", testMtransFloat),
("testMtransDoubleWhenEmpty", testMtransDoubleWhenEmpty),
("testMtransDouble", testMtransDouble),
("testMmulFloatWhenEmpty", testMmulFloatWhenEmpty),
("testMmulFloat", testMmulFloat),
("testMmulDoubleWhenEmpty", testMmulDoubleWhenEmpty),
("testMmulDouble", testMmulDouble),
("testVpolyShouldReturnEmptyArrayWhenCoefficientsEmptyDouble", testVpolyShouldReturnEmptyArrayWhenCoefficientsEmptyDouble),
("testVpolyDouble", testVpolyDouble),
("testVpolyShouldRespectStrideADouble", testVpolyShouldRespectStrideADouble),
("testVpolyShouldRespectStrideBDouble", testVpolyShouldRespectStrideBDouble),
("testVpolyShouldRespectStrideCDouble", testVpolyShouldRespectStrideCDouble),
("testVpolyShouldReturnEmptyArrayWhenCoefficientsEmptyFloat", testVpolyShouldReturnEmptyArrayWhenCoefficientsEmptyFloat),
("testVpolyFloat", testVpolyFloat),
("testVpolyShouldRespectStrideAFloat", testVpolyShouldRespectStrideAFloat),
("testVpolyShouldRespectStrideBFloat", testVpolyShouldRespectStrideBFloat),
("testVpolyShouldRespectStrideCFloat", testVpolyShouldRespectStrideCFloat),
]
}
}
Loading