Rename .github/workflows/libvpl.yml to .github/actions/libvpl.yml

This commit is contained in:
Daniel Stankewitz
2022-07-14 08:58:08 +02:00
committed by GitHub
parent 42ba9ed16a
commit a0306f7482

View File

@ -1,60 +0,0 @@
name: libvpl
inputs:
env:
type: string
required: true
default: 'windows-2022'
description: 'Environment'
config:
type: string
required: true
default: 'debug'
description: 'Configuration'
env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
runs:
using: "composite"
steps:
- name: Set up GIT
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout oneVPL
uses: actions/checkout@v3.0.0
with:
repository: oneapi-src/oneVPL
ref: master
path: onevpl
- name: Check cache
id: libvpl-cache
uses: actions/cache@v3
with:
path: dist
key: libvpl-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('onevpl') }}
- name: Set up MSYS2
if: steps.libvpl-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake
path-type: inherit
- name: Build oneVPL
if: steps.libvpl-cache.outputs.cache-hit != 'true'
shell: cmd
run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md temp build dist
cd temp
cmake.exe -G "Visual Studio 17 2022" ..\onevpl -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=..\build -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{ env.msbuildConfig }} -m vpl.sln
cd ..\build
IF EXIST "lib\vpld.lib" move "lib\vpld.lib" "lib\vpl.lib"
D:\a\_temp\setup-msys2\msys2.cmd -c 'rm -rf bin/cmake ; tar czf ../dist/libvpl.tgz *'
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: libvpl-${{ inputs.env }}-${{ inputs.config }}
path: dist/libvpl.tgz