File tree Expand file tree Collapse file tree 5 files changed +34
-13
lines changed
JavaKit/Documentation.docc
SwiftJavaDocumentation/Documentation.docc Expand file tree Collapse file tree 5 files changed +34
-13
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+ jdk_vendor : ['corretto']
30+ env :
31+ ADDITIONAL_DOCC_ARGUMENTS : ' '
32+ steps :
33+ - uses : actions/checkout@v4
34+ - name : Prepare CI Environment
35+ uses : ./.github/actions/prepare_env
36+ - name : Install Swiftly
37+ run : ./.github/scripts/install_swiftly.sh
38+ env :
39+ SWIFT_VERSION : " ${{ matrix.swift_version }}"
40+ - 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
1644
1745 test-java :
1846 name : Test (Java) (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
Original file line number Diff line number Diff line change 1- # `` JavaKit ``
1+ # JavaKit
22
33Library and tools to make it easy to use Java libraries from Swift using the Java Native Interface (JNI).
44
Original file line number Diff line number Diff line change 11# SwiftJava SwiftPM Plugin
22
3- The ` SwiftJavaPlugin ` automates < doc:SwiftJavaCommandLineTool > invocations during the build process.
3+ The ` SwiftJavaPlugin ` automates ` swift-java ` command line tool invocations during the build process.
44
55## Installing the plugin
66
Original file line number Diff line number Diff line change 1- # `` SwiftJavaDocumentation ``
1+ # SwiftJavaDocumentation
22
33@Metadata {
44 @TechnologyRoot
@@ -32,10 +32,3 @@ which is a quick overview of all the features and approaches offered by SwiftJav
3232- < doc:SwiftJavaCommandLineTool >
3333- < doc:SwiftPMPlugin >
3434
35- ### Using Java from Swift
36-
37- - JavaKit
38-
39- ### Using Swift from Java
40-
41- - SwiftKitSwift
You can’t perform that action at this time.
0 commit comments