Update action.yml
This commit is contained in:
parent
61b2af2760
commit
649f8542d4
14
.github/actions/libzimg/action.yml
vendored
14
.github/actions/libzimg/action.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: libzimg
|
name: libzimg
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
refId:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
config:
|
config:
|
||||||
@ -20,22 +20,14 @@ runs:
|
|||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
with:
|
||||||
repository: sekrit-twc/zimg
|
repository: sekrit-twc/zimg
|
||||||
ref: release-3.0.4
|
ref: ${{ inputs.refId }}
|
||||||
path: zimg
|
path: zimg
|
||||||
- name: Check cache
|
|
||||||
id: libzimg-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: dist
|
|
||||||
key: libzimg-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('zimg') }}
|
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||||
path-type: inherit
|
path-type: inherit
|
||||||
- name: Build ZIMG
|
- name: Build ZIMG
|
||||||
if: steps.libzimg-cache.outputs.cache-hit != 'true'
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
env:
|
env:
|
||||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||||
@ -48,5 +40,5 @@ runs:
|
|||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libzimg-${{ inputs.env }}-${{ inputs.config }}
|
name: libzimg-${{ runner.os }}-${{ inputs.config }}
|
||||||
path: dist/libzimg.tgz
|
path: dist/libzimg.tgz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user