add zig cc #353
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
| # SPDX-FileCopyrightText: ukoOS Contributors | |
| # | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| name: Deploy documentation | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: 'ubuntu-latest' | |
| container: | |
| image: docker.io/alpine:3.23 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apk add --no-interactive \ | |
| bash \ | |
| binutils-riscv-none-elf \ | |
| coreutils \ | |
| gcc-riscv-none-elf \ | |
| gdb-multiarch \ | |
| git \ | |
| make \ | |
| mdbook \ | |
| perl \ | |
| python3 \ | |
| qemu-system-riscv64 \ | |
| tar \ | |
| zstd | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build docs | |
| run: | | |
| mkdir build | |
| cd build | |
| ../configure --target qemu-riscv64 | |
| make doc/book | |
| - name: Upload documentation | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: build/doc/book | |
| deploy-pages: | |
| needs: build | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/trunk' | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |