mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* fix addhaar typo * consolidate mobile app links and add tests * fix caching issues for pipelines * fix gitleaks * update binary merkle root.circom package source * fix cache * update path * rename lockfile * fix qrcode error * fix mobile ci tests and prettier * fix qr code typing * fix qrcode pipelines * fix integration test
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Cache Bundler
|
|
|
|
description: Cache Ruby gems installed via Bundler.
|
|
|
|
inputs:
|
|
path:
|
|
description: Paths to cache
|
|
required: false
|
|
default: vendor/bundle
|
|
lock-file:
|
|
description: Path to Gemfile.lock
|
|
required: false
|
|
default: Gemfile.lock
|
|
cache-version:
|
|
description: Additional cache version segment
|
|
required: false
|
|
default: v1
|
|
|
|
outputs:
|
|
cache-hit:
|
|
description: Whether an exact match was found for the cache key
|
|
value: ${{ steps.cache.outputs.cache-hit }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: get-hash
|
|
name: Hash lock file
|
|
shell: bash
|
|
run: |
|
|
if [ -f "${{ inputs.lock-file }}" ]; then
|
|
echo "hash=$(shasum -a 256 "${{ inputs.lock-file }}" | awk '{ print $1 }')" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "::warning::Lock file '${{ inputs.lock-file }}' not found."
|
|
echo "hash=no-lock-file" >> $GITHUB_OUTPUT
|
|
fi
|
|
- id: cache
|
|
name: Cache Ruby gems
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ inputs.path }}
|
|
key: ${{ runner.os }}-gems-${{ inputs.cache-version }}-${{ steps.get-hash.outputs.hash }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gems-${{ inputs.cache-version }}-
|
|
${{ runner.os }}-gems-
|