2021-06-09 16:34:44 +00:00
|
|
|
name: Maintenance
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 15 * * 0'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.type }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
type: [maintenance]
|
|
|
|
fail-fast: false
|
|
|
|
steps:
|
2021-06-15 21:10:32 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
2021-06-20 19:31:02 +00:00
|
|
|
|
2021-06-09 16:34:44 +00:00
|
|
|
- name: Configure Python
|
|
|
|
run: |
|
|
|
|
pip install boto3
|
|
|
|
|
|
|
|
- name: Cleanup outdated binary cache
|
|
|
|
if: ${{ success() }}
|
|
|
|
env:
|
|
|
|
ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
|
|
|
SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
|
|
|
|
run: |
|
2021-06-20 19:31:02 +00:00
|
|
|
python ./deploy/cleanup_vcpkg_archive_cache.py ./vcpkgcache "edu.berkeley.boinc.github.actions.build.vcpkg.binary.cache" "$ACCESS_KEY" "$SECRET_KEY"
|