Skip to content

Commit

Permalink
Add cache refresh workflow
Browse files Browse the repository at this point in the history
Just keeps caches active if activity on the repository is reduced.
  • Loading branch information
chemix-lunacy committed Jun 12, 2024
1 parent 9ca8675 commit 982d6ca
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cache-refresh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Cache refresh

on:
schedule:
- cron: "0 0 1,6,11,16,21,26,31 * *" # Every 5 days, give or take.
workflow_dispatch:

permissions:
contents: write
actions: write

jobs:
refresh:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-20.04", "windows-2019", "macos-14", "macos-latest" ]

steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: ./.github/actions/rust-toolchain
with:
toolchain: 1.75.0
components: rustfmt clippy
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
if: ${{ matrix.os != 'macos-14' && matrix.os != 'macos-latest' }}
- name: Install LLVM
uses: ./.github/actions/install-llvm
with:
version: "15"
os: ${{ matrix.os }}

0 comments on commit 982d6ca

Please sign in to comment.