inputs.
This commit is contained in:
parent
e979b4ee9d
commit
6d5c133800
8
.github/actions/libsnappy/action.yml
vendored
8
.github/actions/libsnappy/action.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: libsnappy
|
name: libsnappy
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
refId:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
config:
|
config:
|
||||||
@ -20,14 +20,14 @@ runs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: google/snappy
|
repository: google/snappy
|
||||||
ref: 1.1.9
|
ref: ${{ inputs.refId }}
|
||||||
path: snappy
|
path: snappy
|
||||||
- name: Check cache
|
- name: Check cache
|
||||||
id: libsnappy-cache
|
id: libsnappy-cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
key: libsnappy-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('snappy') }}
|
key: libsnappy-${{ runner.os }}-${{ inputs.config }}-${{ hashFiles('snappy') }}
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
if: steps.libsnappy-cache.outputs.cache-hit != 'true'
|
if: steps.libsnappy-cache.outputs.cache-hit != 'true'
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
@ -53,5 +53,5 @@ runs:
|
|||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libsnappy-${{ inputs.env }}-${{ inputs.config }}
|
name: libsnappy-${{ runner.os }}-${{ inputs.config }}
|
||||||
path: dist/libsnappy.tgz
|
path: dist/libsnappy.tgz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user