CEFS consolidation #9
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: | |
| # TODO: enable | |
| # schedule: | |
| # - cron: '15 6 * * *' | |
| 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' ] | |
| steps: | |
| - name: Start from a clean directory | |
| uses: AutoModality/action-clean@v1.1.0 | |
| - uses: actions/checkout@v4 | |
| - name: Set up environment | |
| run: make ce | |
| - name: Consolidate ${{ github.event.inputs.filter }} into ${{ github.event.inputs.max-size }} chunks | |
| # TODO: remove `--defer-backup-cleanup` once we have converted everything and manually cleaned up the backups | |
| # TODO: finally sort out permissions for this. I hate sudo | |
| run: sudo bin/ce_install cefs consolidate --defer-backup-cleanup --reconsolidate --max-size ${{ github.event.inputs.max-size }} ${{ github.event.inputs.filter }} |