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
|
name: libx264
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
refId:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
config:
|
config:
|
||||||
@ -20,22 +20,14 @@ runs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: mirror/x264
|
repository: mirror/x264
|
||||||
ref: stable
|
ref: ${{ inputs.refId }}
|
||||||
path: x264
|
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
|
- name: Set up MSYS2
|
||||||
if: steps.libx264-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 X264
|
- name: Build X264
|
||||||
if: steps.libx264-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\
|
||||||
@ -47,5 +39,5 @@ runs:
|
|||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: libx264-${{ inputs.env }}-${{ inputs.config }}
|
name: libx264-${{ runner.os }}-${{ inputs.config }}
|
||||||
path: dist/libx264.tgz
|
path: dist/libx264.tgz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user