diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-04-21 18:29:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 18:29:22 +0200 |
commit | eb50c4f28d978fcd914b819d523e8da607d05b0c (patch) | |
tree | 87041774b82c0af473e3766089f67d939f901eee /.github/workflows/dokka-examples.yml | |
parent | de63c4479bcd9a81db25b5432df82edb98119410 (diff) | |
download | dokka-eb50c4f28d978fcd914b819d523e8da607d05b0c.tar.gz dokka-eb50c4f28d978fcd914b819d523e8da607d05b0c.tar.bz2 dokka-eb50c4f28d978fcd914b819d523e8da607d05b0c.zip |
Clean up GitHub workflows (#2951)
* Run Gradle wrapper checksum less often
* Do not publish examples as artifacts in internal PRs
Diffstat (limited to '.github/workflows/dokka-examples.yml')
-rw-r--r-- | .github/workflows/dokka-examples.yml | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/.github/workflows/dokka-examples.yml b/.github/workflows/dokka-examples.yml deleted file mode 100644 index 4d3a9f8d..00000000 --- a/.github/workflows/dokka-examples.yml +++ /dev/null @@ -1,143 +0,0 @@ -name: Build examples - -on: pull_request - -concurrency: - group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' - cancel-in-progress: true - -jobs: - build: - strategy: - matrix: - projects: [ - examples/gradle/dokka-gradle-example, - examples/gradle/dokka-kotlinAsJava-example, - examples/gradle/dokka-library-publishing-example, - examples/gradle/dokka-multimodule-example, - examples/gradle/dokka-multiplatform-example, - examples/gradle/dokka-customFormat-example - ] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - examples_changed: - - '${{ matrix.projects }}/**' - - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - cache: 'maven' - - uses: gradle/gradle-build-action@v2 - with: - gradle-home-cache-cleanup: true - - run: ./gradlew build --no-daemon --stacktrace - working-directory: ${{ matrix.projects }} - if: steps.filter.outputs.examples_changed == 'true' - - run-dokka-html: - strategy: - matrix: - projects: [ - examples/gradle/dokka-gradle-example, - examples/gradle/dokka-kotlinAsJava-example, - examples/gradle/dokka-library-publishing-example, - examples/gradle/dokka-multiplatform-example, - examples/gradle/dokka-customFormat-example - ] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - examples_changed: - - '${{ matrix.projects }}/**' - - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - cache: 'maven' - - uses: gradle/gradle-build-action@v2 - with: - gradle-home-cache-cleanup: true - - run: ./gradlew dokkaHtml --no-daemon --stacktrace - working-directory: ${{ matrix.projects }} - if: steps.filter.outputs.examples_changed == 'true' - - run-dokka-publishing: - strategy: - matrix: - tasks: [ dokkaJavadocJar, dokkaHtmlJar ] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - examples_changed: - - 'examples/gradle/dokka-library-publishing-example/**' - - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - cache: 'maven' - - uses: gradle/gradle-build-action@v2 - with: - gradle-home-cache-cleanup: true - - run: ./gradlew ${{ matrix.tasks }} --no-daemon --stacktrace - working-directory: examples/gradle/dokka-library-publishing-example - if: steps.filter.outputs.examples_changed == 'true' - - run-dokka-gradle-tasks: - runs-on: ubuntu-latest - strategy: - matrix: - include: - - task: "dokkaHtmlMultiModule" - dir: "examples/gradle/dokka-multimodule-example" - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - examples_changed: - - '${{ matrix.dir }}/**' - - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - cache: 'maven' - - uses: gradle/gradle-build-action@v2 - with: - gradle-home-cache-cleanup: true - - run: ./gradlew ${{ matrix.task }} --no-daemon --stacktrace - working-directory: ${{ matrix.dir }} - if: steps.filter.outputs.examples_changed == 'true' - - run-dokka-maven-example: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - examples_changed: - - 'examples/maven/**' - working-directory: examples/maven - - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 17 - cache: 'maven' - - run: mvn compile dokka:dokka - working-directory: examples/maven - if: steps.filter.outputs.examples_changed == 'true' |