55 branches :
66 - main
77 paths :
8- - ' intelligence/**/*'
9- - ' .github/workflows/intelligence-*.yml'
8+ - " intelligence/**/*"
9+ - " .github/workflows/intelligence-*.yml"
1010 pull_request :
1111 branches :
1212 - main
1313 paths :
14- - ' intelligence/**/*'
15- - ' .github/workflows/intelligence-*.yml'
14+ - " intelligence/**/*"
15+ - " .github/workflows/intelligence-*.yml"
1616
1717concurrency :
1818 group : ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
5050 - name : Setup Node.js
5151 uses : actions/setup-node@v3
5252 with :
53- node-version : ' 22.14.0'
53+ node-version : " 22.14.0"
5454 - name : Install pnpm
5555 run : |
5656 npm install -g pnpm
7272 path : intelligence/docs/source/ts-api-ref/
7373
7474 build_swift_docs :
75+ if : false
7576 runs-on : macos-14
7677 name : Build Swift Docs
7778 steps :
9091 run : brew install sourcedocs
9192 - name : Build Swift docs
9293 run : |
93- sourcedocs generate --module-name FlowerIntelligence -- -scheme Flwr -destination 'platform=macOS'
94+ (
95+ mv FlowerIntelligenceExamples.xcodeproj FlowerIntelligenceExamples.xcodeproj.bak
96+ trap 'mv FlowerIntelligenceExamples.xcodeproj.bak FlowerIntelligenceExamples.xcodeproj' EXIT
97+ sourcedocs generate --module-name FlowerIntelligence -- -scheme flower -destination 'platform=macOS'
98+ )
9499 mkdir -p intelligence/docs/source/swift-api-ref
95100 cp -r Documentation/Reference/* intelligence/docs/source/swift-api-ref/
96101 mv intelligence/docs/source/swift-api-ref/README.md intelligence/docs/source/swift-api-ref/index.md
@@ -116,8 +121,8 @@ jobs:
116121 - name : Set up JDK
117122 uses : actions/setup-java@v3
118123 with :
119- distribution : ' temurin'
120- java-version : ' 17 '
124+ distribution : " temurin"
125+ java-version : " 17 "
121126
122127 - name : Build Kotlin docs
123128 run : |
@@ -131,7 +136,7 @@ jobs:
131136
132137 build_and_deploy :
133138 runs-on : ubuntu-22.04
134- needs : [build_ts_docs, build_swift_docs, build_kt_docs]
139+ needs : [build_ts_docs, build_kt_docs]
135140 name : Deploy Docs
136141 steps :
137142 - uses : actions/checkout@v5
@@ -153,12 +158,6 @@ jobs:
153158 with :
154159 name : ts-docs
155160 path : intelligence/docs/source/ts-api-ref/
156- - name : Download Swift docs
157- if : ${{ github.ref == 'refs/heads/main' && github.repository == 'flwrlabs/flower' && !github.event.pull_request.head.repo.fork }}
158- uses : actions/download-artifact@v4
159- with :
160- name : swift-docs
161- path : intelligence/docs/source/swift-api-ref/
162161 - name : Download Kotlin docs
163162 if : ${{ github.ref == 'refs/heads/main' && github.repository == 'flwrlabs/flower' && !github.event.pull_request.head.repo.fork }}
164163 uses : actions/download-artifact@v4
0 commit comments