File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 2626 elif [[ -n "$JAVA_HOME_24_ARM64" ]]; then
2727 echo "JAVA_HOME_24=$JAVA_HOME_24_ARM64" >> $GITHUB_ENV
2828 fi
29- - name : Check Java environment
30- shell : bash
31- run : ./gradlew -q javaToolchains
29+ # - name: Check Java environment
30+ # shell: bash
31+ # run: ./gradlew -q javaToolchains
3232 - name : Cache local SwiftPM repository
3333 if : matrix.os_version == 'jammy'
3434 uses : actions/cache@v4
Original file line number Diff line number Diff line change 1313 # FIXME: Something is off with the format task and it gets "stuck", need to investigate
1414 format_check_enabled : false
1515 license_header_check_project_name : Swift.org
16+ # Since we need JAVA_HOME to be set up for building the project and depending on a different workflow won't
17+ # give us that, we disable the checking and make a separate job that performs docs validation
18+ docs_check_enabled : false
19+
20+ # This replicates 'docs-check' from https://github.com/swiftlang/github-workflows/blob/main/.github/workflows/soundness.yml
21+ # because we need to set up environment so we can build the SwiftJava project (including Java runtime/dependencies).
22+ soundness-docs :
23+ name : Documentation check
24+ runs-on : ubuntu-latest
25+ strategy :
26+ fail-fast : true
27+ matrix :
28+ swift_version : ['6.1.2']
29+ os_version : ['jammy']
30+ jdk_vendor : ['corretto']
31+ container :
32+ image : ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
33+ steps :
34+ - uses : actions/checkout@v4
35+ - name : Prepare CI Environment
36+ uses : ./.github/actions/prepare_env
37+ - name : Run documentation check
38+ run : |
39+ which curl || (apt -q update && apt -yq install curl)
40+ curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
1641
1742 test-java :
1843 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