Skip to content

Commit 00a1380

Browse files
committed
Merge branch 'feature/swift-testing'
2 parents c4bc984 + 146823f commit 00a1380

File tree

5 files changed

+9
-39
lines changed

5 files changed

+9
-39
lines changed

.github/workflows/swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
xcode-version: latest-stable
3737
- uses: swift-actions/setup-swift@v2
3838
with:
39-
swift-version: '6.0'
39+
swift-version: 6
4040
# https://www.swift.org/download/
4141
- name: Build
4242
run: swift build -v

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2022, 2023, 2024 Camden Narzt <getargv@narzt.cam>. All rights reserved.
3+
Copyright (c) 2022, 2023, 2024, 2025 Camden Narzt <getargv@narzt.cam>. All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are met:

Package.resolved

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "Cgetargv",
7+
name: "Getargv",
88
platforms: [.macOS(.v10_15)],
99
products: [
1010
.library(name: "SwiftGetargv", targets: ["SwiftGetargv"]),
@@ -13,7 +13,6 @@ let package = Package(
1313
dependencies: [
1414
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
1515
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.4.3"),
16-
.package(url: "https://github.com/swiftlang/swift-testing", from: "0.11.0"),
1716
],
1817
targets: [
1918
.executableTarget(
@@ -44,23 +43,11 @@ let package = Package(
4443
),
4544
.testTarget(
4645
name: "SwiftGetargvTests",
47-
dependencies: [
48-
"SwiftGetargv",
49-
.product(
50-
name: "Testing",
51-
package: "swift-testing"
52-
)
53-
]
46+
dependencies: [ "SwiftGetargv" ]
5447
),
5548
.testTarget(
5649
name: "CgetargvTests",
57-
dependencies: [
58-
"Cgetargv",
59-
.product(
60-
name: "Testing",
61-
package: "swift-testing"
62-
)
63-
]
50+
dependencies: [ "Cgetargv" ]
6451
)
6552
],
6653
cLanguageStandard: .c99 // https://developer.apple.com/documentation/packagedescription/clanguagestandard

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ To make `getargv.swift`:
1818

1919
- Install `libgetargv` to your system (see below).
2020
- Clone this repo and run `swift build` or
21-
- Add an entry to the dependencies array in your `Package` in your `Package.swift` file: `.package(url: "https://github.com/getargv/getargv.swift", from: "0.0.5")` and an entry in the dependencies array of your target `.product(name: "Cgetargv", package: "getargv.swift")`
21+
- Add an entry to the dependencies array in your `Package` in your `Package.swift` file: `.package(url: "https://github.com/getargv/getargv.swift", from: "0.0.9")` and an entry in the dependencies array of your target `.product(name: "Cgetargv", package: "getargv.swift")`
22+
2223
## Installing `libgetargv`
2324

2425
To get access to `libgetargv`, sign up for an appropriate [sponsorship tier](https://github.com/sponsors/CamJN).
@@ -30,4 +31,4 @@ Running `make install_dylib`, installs the library to the `/usr/local/` prefix b
3031
I'm working on building binary artifacts to install without compilation, using `pkg` installers, however even once that's done, depending on your system, it may still be necessary to compile from source; eg. if you have built your own xnu kernel with a custom `PID_MAX` value.
3132

3233
## Building `libgetargv`
33-
I've built `libgetargv` on macOS 10.7-13, using only the <abbr title="Command Line Tools">CLT</abbr> package, not the full Xcode install. If you need to override variables, do so inside the `make` command, eg: `make EXTRA_CPPFLAGS=-DMACRO EXTRA_CFLAGS=-std=c17 dylib`. Since swift did not exist when 10.6 was current, that should not be a concern for this project.
34+
I've built `libgetargv` on macOS 10.7-15, using only the <abbr title="Command Line Tools">CLT</abbr> package, not the full Xcode install. If you need to override variables, do so inside the `make` command, eg: `make EXTRA_CPPFLAGS=-DMACRO EXTRA_CFLAGS=-std=c17 dylib`. Since swift did not exist when 10.6 was current, that should not be a concern for this project.

0 commit comments

Comments
 (0)