Infrastructure • Generate CCache #217
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 | |
| "on": | |
| workflow_dispatch: | |
| inputs: | |
| docker_image_deeploy: | |
| description: "Deeploy Image to use" | |
| required: false | |
| default: "ghcr.io/pulp-platform/deeploy:devel" | |
| schedule: | |
| # Runs the workflow on the default branch every day at 1AM CET to keep the cache fresh | |
| - cron: "0 1 * * *" | |
| jobs: | |
| generate-ccache: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ github.event.inputs.docker_image_deeploy || 'ghcr.io/pulp-platform/deeploy: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: pip install -e . | |
| - name: Generate CCache | |
| shell: bash | |
| run: | | |
| cd DeeployTest | |
| mkdir -p /app/.ccache | |
| export CCACHE_DIR=/app/.ccache | |
| pytest 'test_platforms.py::test_generic_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_mempool_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_cortexm_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_snitch_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_snitch_tiled_kernels_l2_singlebuffer[Kernels/Integer/Add/Large-5000-L2-singlebuffer]' --skipsim | |
| pytest 'test_platforms.py::test_siracusa_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| pytest 'test_platforms.py::test_siracusa_tiled_kernels_l2_singlebuffer[Kernels/Integer/MatMul/Regular-64000-L2-singlebuffer]' --skipsim | |
| pytest 'test_platforms.py::test_siracusa_neureka_tiled_kernels_l2_singlebuffer[Kernels/Integer/GEMM/Regular_RQPerColumn-16000-L2-singlebuffer]' --skipsim | |
| pytest 'test_platforms.py::test_chimera_kernels[Kernels/Integer/Add/Regular]' --skipsim | |
| - name: Clean and Upload CCache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /app/.ccache | |
| key: ccache-ci |