Skip to content

Commit fbeb142

Browse files
committed
try manually...
1 parent feb0372 commit fbeb142

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

.github/scripts/install_swiftly.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,8 @@ echo "Displaying swift version"
8484
swiftly run "${runSelector[@]}" swift --version
8585

8686
if [[ "$(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
8890
fi
91+

.github/scripts/validate_docs.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

.github/workflows/pull_request.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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}})

0 commit comments

Comments
 (0)