Update action.yml

This commit is contained in:
Daniel Stankewitz 2022-07-26 14:38:18 +02:00 committed by GitHub
parent 29d3ae53b9
commit ebe0343972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
name: libx264
inputs:
env:
refId:
type: string
required: true
config:
@ -20,22 +20,14 @@ runs:
uses: actions/checkout@v3
with:
repository: mirror/x264
ref: stable
ref: ${{ inputs.refId }}
path: x264
- name: Check cache
id: libx264-cache
uses: actions/cache@v3
with:
path: dist
key: libx264-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x264') }}
- name: Set up MSYS2
if: steps.libx264-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Build X264
if: steps.libx264-cache.outputs.cache-hit != 'true'
shell: cmd
env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
@ -47,5 +39,5 @@ runs:
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: libx264-${{ inputs.env }}-${{ inputs.config }}
name: libx264-${{ runner.os }}-${{ inputs.config }}
path: dist/libx264.tgz