CEFS consolidation #185
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: CEFS consolidation | |
| on: | |
| schedule: | |
| - cron: '15 7 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| filter: | |
| description: Things to consolidate (empty means all) | |
| default: '' | |
| required: false | |
| max-size: | |
| description: Maximum size of things to consolidate | |
| default: 20G | |
| required: false | |
| jobs: | |
| consolidate: | |
| if: github.repository == 'compiler-explorer/infra' | |
| runs-on: [ 'self-hosted', 'ce', 'linux', 'x64', 'medium' ] | |
| steps: | |
| - name: Clean workspace | |
| run: find "$GITHUB_WORKSPACE" -mindepth 1 -delete | |
| - uses: actions/checkout@v7 | |
| - name: Set up environment | |
| run: make ce | |
| - name: Consolidate ${{ github.event.inputs.filter }} into ${{ github.event.inputs.max-size }} chunks | |
| # TODO: finally sort out permissions for this. I hate sudo | |
| # TODO: remote `--debug` once we're happy | |
| run: sudo bin/ce_install --debug cefs consolidate --reconsolidate --max-size ${{ github.event.inputs.max-size || '20G' }} ${{ github.event.inputs.filter }} |