Fix glibc compatibility (#1130) #391
This file contains hidden or 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
| # Build Skiko documentation | |
| name: Doc | |
| on: | |
| push: | |
| branches: [ master ] | |
| # Temporary, for testing. Remove! | |
| #pull_request: | |
| # branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| dokka: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| name: 'Check out code' | |
| - uses: actions/setup-java@v3 | |
| name: 'Set up JDK 21' | |
| with: | |
| distribution: 'adopt' | |
| java-version: '21' | |
| cache: 'gradle' | |
| - shell: bash | |
| name: 'Set up Linux build environment' | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install libglu1-mesa-dev libxrandr-dev libdbus-1-dev multistrap -y | |
| 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 gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu -y | |
| sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-9 60 --slave /usr/bin/aarch64-linux-gnu-g++ aarch64-linux-gnu-g++ /usr/bin/aarch64-linux-gnu-g++-9 | |
| sudo update-alternatives --config aarch64-linux-gnu-gcc | |
| 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 |