Skip to content

build: fix install

build: fix install #35

Workflow file for this run

name: build-windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Configure CMake
run: cmake -G "Visual Studio 17 2022" -A x64 -B ${{github.workspace}}/build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j
- name: Install
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -t install
rm -Force ${{github.workspace}}/install/README.md
rm -Force ${{github.workspace}}/install/*.ilk
rm -Force ${{github.workspace}}/install/*.pdb
mv -Force ${{github.workspace}}/install/${{env.BUILD_TYPE}}/* ${{github.workspace}}/install/
rm -Force ${{github.workspace}}/install/${{env.BUILD_TYPE}}/
- uses: actions/upload-artifact@v3
with:
name: build-windows
path: ${{github.workspace}}/install
if-no-files-found: error