Infrastructure • Generate CCache GAP9 #82
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: 2025 ETH Zurich and University of Bologna | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| --- | |
| name: Infrastructure • Generate CCache GAP9 | |
| "on": | |
| workflow_dispatch: | |
| inputs: | |
| docker_image_deeploy: | |
| description: "Deeploy GAP9 Image to use" | |
| required: false | |
| default: "ghcr.io/pulp-platform/deeploy-gap9:devel" | |
| schedule: | |
| # Runs the workflow on the default branch every day at 2AM CET to keep the cache fresh | |
| - cron: "0 2 * * *" | |
| jobs: | |
| generate-ccache-gap9: | |
| if: github.repository == 'pulp-platform/Deeploy' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ github.event.inputs.docker_image_deeploy || 'ghcr.io/pulp-platform/deeploy-gap9:devel' }} | |
| steps: | |
| - name: Mark workspace as safe | |
| run: git config --global --add safe.directory '*' | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build Deeploy | |
| shell: bash | |
| run: | | |
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | |
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | |
| pip install -e . || true | |
| deactivate | |
| - name: Generate CCache for GAP9 | |
| shell: bash | |
| run: | | |
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | |
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | |
| export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation | |
| cd DeeployTest | |
| mkdir -p /app/.ccache | |
| export CCACHE_DIR=/app/.ccache | |
| pytest 'test_platforms.py::test_gap9_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_gap9_tiled_kernels_l2_singlebuffer[Kernels/Integer/MatMul/Regular-64000-L2-singlebuffer]' --skipsim | |
| deactivate | |
| - name: Clean and Upload CCache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /app/.ccache | |
| key: ccache-gap9 |