-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation publishing workflow
- Loading branch information
1 parent
6c503c2
commit 7f84161
Showing
5 changed files
with
85 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Documentation Site | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
artifact_version: | ||
description: 'Version of final artifact to deploy' | ||
required: true | ||
|
||
jobs: | ||
gradle: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/[email protected] | ||
- name: Build and deploy site | ||
uses: ./actions/doc-build-publish | ||
with: | ||
artifact_version: ${{ inputs.artifact_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Documentation Build And Publish | ||
|
||
inputs: | ||
artifact_version: | ||
description: 'Target version of final artifacts' | ||
default: '' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
- name: Build site | ||
uses: ./actions/gradle-build | ||
with: | ||
artifact_version: ${{ inputs.artifact_version }} | ||
gradle_command: "documentationSite" | ||
- name: Upload site artifact | ||
id: deployment | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/sphinx/.out/html/ | ||
- name: Deploy site to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Gradle Build | ||
|
||
inputs: | ||
gradle_command: | ||
description: 'Gradle command to run' | ||
required: true | ||
artifact_version: | ||
description: 'Target version of final artifacts' | ||
default: '' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 | ||
- name: Remove JVM args | ||
shell: bash | ||
run: sed -i -e "s/^org\.gradle\..*/#&/g" gradle.properties | ||
- name: Run Gradle Command | ||
shell: bash | ||
run: ARTIFACT_VERSION="${{ inputs.artifact_version }}" GRADLE_OPTS="-XX:+HeapDumpOnOutOfMemoryError -Xverify:none -XX:+TieredCompilation -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED" ./gradlew --no-daemon --console=plain -b ./build.gradle ${{ inputs.gradle_command }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ inputs: | |
gradle_args: | ||
description: 'Gradle arguments for running' | ||
required: true | ||
artifact_version: | ||
description: 'Target version of final artifacts' | ||
default: '' | ||
|
||
runs: | ||
using: "composite" | ||
|
@@ -30,19 +33,11 @@ runs: | |
- name: Switch FDB to SSD | ||
shell: bash | ||
run: fdbcli --exec "configure single ssd storage_migration_type=aggressive; status" | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 | ||
- name: Remove JVM args | ||
shell: bash | ||
run: sed -i -e "s/^org\.gradle\..*/#&/g" gradle.properties | ||
- name: Run build and test | ||
shell: bash | ||
run: GRADLE_OPTS="-XX:+HeapDumpOnOutOfMemoryError -Xverify:none -XX:+TieredCompilation -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED" ./gradlew --no-daemon --console=plain -b ./build.gradle build destructiveTest -PcoreNotStrict ${{ inputs.gradle_args }} | ||
uses: ./actions/gradle-build | ||
with: | ||
artifact_version: ${{ inputs.artifact_version }} | ||
gradle_command: "build destructiveTest -PcoreNotStrict ${{ inputs.gradle_args }}" | ||
- name: Copy Test Reports | ||
shell: bash | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters