mirror of
https://gitea.com/gitea/act
synced 2024-11-27 07:08:57 +00:00
d77991c95a
* feat: port * fix: use httprouter * fix: WriteHeader * fix: bolthold * fix: bugs * chore: one less file * test: test handler * fix: bug in id * test: fix cases * chore: tidy * fix: use atomic.Int32 * fix: use atomic.Store * feat: support close * chore: lint * fix: cache keys are case insensitive * fix: options * fix: use options * fix: close * fix: ignore close error * Revert "fix: close" This reverts commit d53ea7568ba03908eb153031c435008fd47e7ccb. * fix: cacheUrlKey * fix: nil close * chore: lint code * fix: test key * test: case insensitive * chore: lint
31 lines
710 B
YAML
31 lines
710 B
YAML
# Copied from https://github.com/actions/cache#example-cache-workflow
|
|
name: Caching Primes
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- run: env
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Cache Primes
|
|
id: cache-primes
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: prime-numbers
|
|
key: ${{ runner.os }}-primes-${{ github.run_id }}
|
|
restore-keys: |
|
|
${{ runner.os }}-primes
|
|
${{ runner.os }}
|
|
|
|
- name: Generate Prime Numbers
|
|
if: steps.cache-primes.outputs.cache-hit != 'true'
|
|
run: cat /proc/sys/kernel/random/uuid > prime-numbers
|
|
|
|
- name: Use Prime Numbers
|
|
run: cat prime-numbers
|