Update action.yml
This commit is contained in:
parent
4418828161
commit
df491a68fd
17
.github/actions/libx265-12/action.yml
vendored
17
.github/actions/libx265-12/action.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: libx265-12
|
name: libx265-12
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
refId:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
config:
|
config:
|
||||||
@ -16,21 +16,12 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global core.autocrlf false
|
git config --global core.autocrlf false
|
||||||
git config --global core.eol lf
|
git config --global core.eol lf
|
||||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
|
||||||
- name: Check cache
|
|
||||||
id: libx26512-cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: dist
|
|
||||||
key: libx265-12-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }}
|
|
||||||
- name: Set up MSBuild
|
- name: Set up MSBuild
|
||||||
if: steps.libx26512-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
- name: Set up NASM
|
- name: Set up NASM
|
||||||
if: steps.libx26512-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: ilammy/setup-nasm@v1.2.1
|
uses: ilammy/setup-nasm@v1.2.1
|
||||||
- name: Build X265 (12 bit)
|
- name: Build X265 (12 bit)
|
||||||
if: steps.libx26512-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 +39,5 @@ runs:
|
|||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: x265_12bit-${{ inputs.env }}-${{ inputs.config }}
|
name: x265_12bit-${{ runner.os }}-${{ inputs.config }}
|
||||||
path: dist/x265_12bit.lib
|
path: dist/x265_12bit.lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user