Skip to content

bump run-vcpkg version #72

bump run-vcpkg version

bump run-vcpkg version #72

Workflow file for this run

name: Build Feeder App
on: [push, workflow_dispatch]
jobs:
job:
name: ${{ matrix.os }}-${{ github.workflow }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true
# shallow clone doesn't pull tags, unfortunately.
fetch-depth: 0
- uses: lukka/get-cmake@latest
- name: vcpkg setup/restore artifacts
uses: lukka/run-vcpkg@v11
id: runvcpkg
- name: Prints output of run-vcpkg's action.
run: echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
- name: Setup vcpkg env
run: vcpkg env
shell: cmd
if: matrix.os == 'windows-latest'
- name: CMake+vcpkg configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: cmake --build build --config RelWithDebInfo
- name: Package
run: cmake --build build --target package --config RelWithDebInfo
- name: Get package path for Artifact
run: echo "artifactPath=$(realpath build/_CPack_Packages/*/ZIP/SlimeVR-Feeder-App-*/ --relative-to .)" >> $GITHUB_ENV
shell: bash
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
path: ${{ env.artifactPath }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/SlimeVR-Feeder-App-*.zip