Skip to content

Commit

Permalink
test new doc generation command
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jan 13, 2024
1 parent 4c48ed4 commit 23630ea
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: getargv/getargv
path: getargv
token: ${{ secrets.GH_PAT }}
- name: Build libgetargv
run: make install_dylib
working-directory: getargv
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: getargv-swift
- name: Build
Expand All @@ -31,12 +31,9 @@ jobs:
run: swift test -v
working-directory: getargv-swift
- name: Build docs
run: |
swift package generate-xcodeproj
xcodebuild docbuild -scheme Cgetargv-Package -derivedDataPath ./Docs/
tar -cf Docs/SwiftGetargv.doccarchive.tar Docs/Build/Products/*/SwiftGetargv.doccarchive
gzip -9 Docs/SwiftGetargv.doccarchive.tar
run: swift package generate-documentation
working-directory: getargv-swift
- run: ls -R getargv-swift
- run: xcodebuild -list && false
if: ${{ failure() }}
working-directory: getargv-swift
Expand Down
5 changes: 5 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
builder:
configs:
- documentation_targets: [ SwiftGetargv, Cgetargv ]
swift_version: '5.9'
22 changes: 20 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a",
"version" : "1.2.2"
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin",
"state" : {
"revision" : "26ac5758409154cc448d7ab82389c520fa8a8247",
"version" : "1.3.0"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
}
],
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ let package = Package(
.library(name: "Cgetargv", targets: ["Cgetargv"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2")
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
],
targets: [
.executableTarget(name: "getargv2", dependencies: [ "SwiftGetargv", .product(
Expand Down

0 comments on commit 23630ea

Please sign in to comment.