Update action.yml
This commit is contained in:
parent
29d3ae53b9
commit
ebe0343972
14
.github/actions/libx264/action.yml
vendored
14
.github/actions/libx264/action.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user