File tree Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -84,5 +84,8 @@ echo "Displaying swift version"
8484swiftly run " ${runSelector[@]} " swift --version
8585
8686if [[ " $( uname -s) " == " Linux" ]]; then
87- CC=clang swiftly run " ${runSelector[@]} " " $( dirname " $0 " ) /install-libarchive.sh"
87+ if [[ -f " $( dirname " $0 " ) /install-libarchive.sh" ]]; then
88+ CC=clang swiftly run " ${runSelector[@]} " " $( dirname " $0 " ) /install-libarchive.sh"
89+ fi
8890fi
91+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+ set -x
5+
6+ cat << EOF >> Package.swift
7+
8+ package.dependencies.append(
9+ .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0")
10+ )
11+ EOF
12+
13+ echo " Active Swift:"
14+ which swift
15+ swift -version
16+
17+ swift package plugin generate-documentation --target " SwiftJavaDocumentation" --warnings-as-errors --analyze
Original file line number Diff line number Diff line change @@ -26,21 +26,16 @@ jobs:
2626 fail-fast : true
2727 matrix :
2828 swift_version : ['6.1.2']
29+ os_version : ['jammy']
2930 jdk_vendor : ['corretto']
3031 env :
3132 ADDITIONAL_DOCC_ARGUMENTS : ' '
3233 steps :
3334 - uses : actions/checkout@v4
3435 - name : Prepare CI Environment
3536 uses : ./.github/actions/prepare_env
36- - name : Install Swiftly
37- run : ./.github/scripts/install_swiftly.sh
38- env :
39- SWIFT_VERSION : " ${{ matrix.swift_version }}"
4037 - name : Run documentation check
41- run : |
42- which curl || (apt -q update && apt -yq install curl)
43- curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
38+ run : ./github/scripts/validate_docs.sh
4439
4540 test-java :
4641 name : Test (Java) (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
You can’t perform that action at this time.
0 commit comments