Move cache dir to /tmp and make it configurable (#8) #63
This file contains 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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
env: | |
FORCE_COLOR: "1" # Make tools pretty. | |
jobs: | |
check-install: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: action | |
- run: echo WEEK=$(date +%V) >>$GITHUB_ENV | |
shell: bash | |
- uses: ./action | |
with: | |
cache-suffix: -${{ env.WEEK }} | |
- run: uv --version | |
check-hash-deps-path: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: action | |
- uses: ./action | |
with: | |
cache-suffix: -hash-deps-path-job | |
cache-dependency-path: "**/LICENSE" | |
- run: | | |
uv venv | |
uv pip install attrs |