Skip to content

Add workflow to publish Dokka HTML docs to project site #856

Add workflow to publish Dokka HTML docs to project site

Add workflow to publish Dokka HTML docs to project site #856

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
validation:
name: "Validate Gradle Wrapper"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
build:
name: Build on ${{ matrix.os.runner }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: ${{ matrix.os.shell }}
strategy:
fail-fast: false
matrix:
os:
- runner: macos-latest
shell: bash
- runner: windows-latest
shell: msys2 {0}
- runner: ubuntu-latest
shell: bash
steps:
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
msystem: MINGW64
update: true
path-type: inherit
install: >-
tar
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-extra-cmake-modules
mingw64/mingw-w64-x86_64-cyrus-sasl
- uses: actions/checkout@v4
- name: Restore native cache
id: cache-native
uses: actions/cache@v3.3.2
with:
path: |
scripts/build
key: ${{ runner.os }}-native-${{ hashFiles('./scripts/*') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
- name: Restore Gradle cache
id: cache-gradle
uses: actions/cache@v3.3.2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Gradle Build
run: ./gradlew clean build spotlessCheck --stacktrace