Zephelin #91
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
| name: zephelin | |
| run-name: Zephelin | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| RENODE_VERSION: "renode_1.16.0+20250929gitc16006c94_amd64.deb" | |
| DEBIAN_FRONTEND: noninteractive | |
| CMAKE_PREFIX_PATH: /opt/toolchains | |
| jobs: | |
| Run-GatherTrace: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Free space on runner | |
| run: | | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ggc | |
| sudo rm -rf /usr/local/.ghcup | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: ./scripts/ci/install_deps.sh | |
| - name: Setup Zephyr | |
| run: ./scripts/ci/setup_zephyr.sh | |
| - name: Gather Traces | |
| run: ./scripts/ci/gather_traces.sh | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tef-traces | |
| path: tef_*.json | |
| Run-BuildDocs: | |
| runs-on: ubuntu-22.04 | |
| needs: [Run-GatherTrace] | |
| steps: | |
| - name: Free space on runner | |
| run: | | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ggc | |
| sudo rm -rf /usr/local/.ghcup | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Clone and build Zephelin Trace Viewer | |
| run: | | |
| git clone --recursive https://github.com/antmicro/zephelin-trace-viewer.git | |
| cd zephelin-trace-viewer | |
| corepack enable | |
| yarn | |
| yarn build | |
| mkdir -p ../docs/source/_static/trace_viewer | |
| cp -r dist/* ../docs/source/_static/trace_viewer | |
| cd .. | |
| - name: Download traces | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: tef-traces | |
| path: docs/source/_static/trace_viewer | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y texlive-full | |
| python -m pip install -r docs/requirements.txt | |
| - name: Generate documentation | |
| run: | | |
| cd docs | |
| make html latexpdf | |
| cp build/latex/*.pdf build/html | |
| cd - | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: gh-page | |
| path: docs/build/html | |
| - name: Deploy docs to GH Pages | |
| if: github.event_name == 'push' && github.repository == 'antmicro/zephelin' | |
| run: | | |
| cd docs/build/html | |
| touch .nojekyll | |
| git init | |
| cp ../../../.git/config ./.git/config | |
| git add . | |
| git config --local user.email "push@gha" | |
| git config --local user.name "GHA" | |
| git commit -am "update ${{ github.sha }}" | |
| git push -u origin +HEAD:gh-pages | |
| rm -rf .git |