Try a bit different appveyor script
This commit is contained in:
parent
a19f1d18fe
commit
f268fb7f8b
19
appveyor.yml
19
appveyor.yml
|
@ -7,17 +7,16 @@ install:
|
||||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
- set PATH=%PATH%;%LOCALAPPDATA%;C:\msys64\mingw64\bin
|
- set PATH=%PATH%;%LOCALAPPDATA%;C:\msys64\mingw64\bin
|
||||||
- set GOPATH=C:\projects\go-avif
|
- set GOPATH=C:\projects\go-avif
|
||||||
- set CGO_CFLAGS="-I %LOCALAPPDATA%\aom"
|
- set CGO_CFLAGS="-I%LOCALAPPDATA:\=/%\aom"
|
||||||
- set CGO_LDFLAGS="-static -L %LOCALAPPDATA%\aom_build\%CONFIGURATION%"
|
- set CGO_LDFLAGS="-static -L%LOCALAPPDATA:\=/%\aom_build\%CONFIGURATION%"
|
||||||
# Tools
|
# Tools
|
||||||
- cd %LOCALAPPDATA%
|
- cd %LOCALAPPDATA%
|
||||||
- appveyor DownloadFile http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe -FileName yasm.exe
|
- appveyor DownloadFile http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe -FileName yasm.exe
|
||||||
- appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz -FileName sccache.tar.gz && tar -xvf sccache.tar.gz --strip-components=1 --no-anchored sccache.exe
|
|
||||||
# libaom
|
# libaom
|
||||||
- git clone --depth=1 https://aomedia.googlesource.com/aom
|
- IF NOT EXIST aom git clone https://aomedia.googlesource.com/aom
|
||||||
- sed -i "s/ccache/sccache/" aom/build/cmake/aom_configure.cmake
|
- cd aom && git pull && cd ..
|
||||||
- mkdir aom_build && cd aom_build
|
- mkdir -p aom_build && cd aom_build
|
||||||
- cmake ../aom -G "Visual Studio 15 2017" -A x64 -DENABLE_CCACHE=1 -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1
|
- cmake ../aom -G "Visual Studio 15 2017" -A x64 -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1
|
||||||
- cmake --build . --config %CONFIGURATION%
|
- cmake --build . --config %CONFIGURATION%
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
|
@ -29,7 +28,5 @@ artifacts:
|
||||||
name: $(APPVEYOR_PROJECT_NAME)
|
name: $(APPVEYOR_PROJECT_NAME)
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- '%LOCALAPPDATA%\Mozilla\sccache'
|
- '%LOCALAPPDATA%\aom'
|
||||||
|
- '%LOCALAPPDATA%\aom_build'
|
||||||
on_finish:
|
|
||||||
- sccache -s
|
|
||||||
|
|
Loading…
Reference in New Issue