mirror of
https://github.com/bitsycore/skiko.git
synced 2026-10-07 15:37:27 +00:00
Co-authored-by: Oleksandr.Karpovich <oleksandr.karpovich@jetbrains.com>
52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
# Build Skiko documentation
|
|
name: Doc
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
# Temporary, for testing. Remove!
|
|
#pull_request:
|
|
# branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
dokka:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
name: 'Check out code'
|
|
|
|
- uses: actions/setup-java@v3
|
|
name: 'Set up JDK 11'
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
cache: 'gradle'
|
|
|
|
- shell: bash
|
|
name: 'Set up Linux build environment'
|
|
run: |
|
|
# TODO: simplify installation of compilers.
|
|
sudo apt-get update -y
|
|
sudo apt-get install build-essential software-properties-common -y
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
sudo apt-get update -y
|
|
sudo apt-get install build-essential software-properties-common -y
|
|
sudo apt-get update
|
|
sudo apt-get install gcc-9 g++-9 -y
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
|
|
sudo update-alternatives --config gcc
|
|
sudo apt-get install ninja-build fontconfig libfontconfig1-dev libglu1-mesa-dev libxrandr-dev libdbus-1-dev zip xvfb -y
|
|
sudo Xvfb :0 -screen 0 1280x720x24 &
|
|
|
|
- name: 'Build Dokka documentation'
|
|
run: bash -c 'JAVA_OPTS="-Xmx4g" ./gradlew --no-daemon -Pskiko.native.enabled=true -Pskiko.wasm.enabled=true -Pskiko.android.enabled=true :skiko:dokkaHtml'
|
|
|
|
- name: 'Publish documentation'
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
with:
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: ./skiko/build/dokka/html
|