Update x265.yml

This commit is contained in:
Daniel Stankewitz 2022-03-24 19:03:48 +01:00 committed by GitHub
parent 6fc9da30b6
commit 2a314c642f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,43 +21,26 @@ jobs:
x265-12:
runs-on: windows-2019
steps:
# - name: Set up MSYS2
# uses: msys2/setup-msys2@v2
# with:
# install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
# path-type: inherit
# - name: Set up cache
# uses: actions/cache@v2
# env:
# cache-name: cache-ffmpeg-${{ env.msysConfig }}
# with:
# path: cache
# key: cache-key
# - name: Set up GIT
# run: |
# git config --global core.autocrlf false
# git config --global core.eol lf
- name: Checkout X265
uses: actions/checkout@v3.0.0
with:
repository: videolan/x265
ref: Release_3.5
path: x265
- name: Set up NASM
uses: ilammy/setup-nasm@v1.2.1
- name: Build X265
shell: cmd
run: |
type x265\x265Version.txt
git config --global core.autocrlf false
git config --global core.eol lf
git clone -b Release_3.5 https://github.com/videolan/x265/tree/Release_3.5 x265
- name: Set up NASM
uses: ilammy/setup-nasm@v1.2.1
- name: Build X265 (12 bit)
shell: cmd
run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md build dist
cd x265/build/vc15-x86_64
md work12
cd work12
cmake -G "Visual Studio 16 2019" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DX265_LATEST_TAG=3.5
cmake -G "Visual Studio 16 2019" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'cmake -G "Visual Studio 16 2019" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON'
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: libx265
name: libx265-12
path: dist/libx265.tgz