Skip to content

Merge pull request #8 from Exit-9B/update-workflows #25

Merge pull request #8 from Exit-9B/update-workflows

Merge pull request #8 from Exit-9B/update-workflows #25

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
BUILD_TYPE: Release
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup vcpkg
run: |
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
cd $env:VCPKG_INSTALLATION_ROOT
./bootstrap-vcpkg.bat
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt
- name: Cache vcpkg
uses: actions/cache@v4
id: vcpkg-cache
env:
cache-name: vcpkg-cache
with:
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }}
- name: Configure CMake
run: cmake --preset github-workflows -Wno-deprecated
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: MapMarkerFramework
path: ${{ github.workspace }}/build/${{ env.BUILD_TYPE }}/MapMarkerFramework.dll