Skip to content

Release Windows Executable #4

Release Windows Executable

Release Windows Executable #4

Workflow file for this run

name: Release Windows Executable
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-release-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Install boost
uses: MarkusJx/install-boost@v2.4.1
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: 1.81.0
# OPTIONAL: Specify a platform version
platform_version: 2022
# OPTIONAL: Specify a toolset
toolset: msvc
# OPTIONAL: Specify a custon install location
boost_install_dir: c:\
- uses: actions/checkout@v3
- name: Build
run: |
$env:BOOST_INCLUDEDIR = 'C:\boost\boost\'
$env:BOOST_LIBRARYDIR = 'C:\boost\boost\stage\lib'
$env:BOOST_ROOT = 'C:\boost\boost\'
mkdir Release
cd Release
cmake ..
cmake --build . --parallel 4 --config Release
- name: Add binary as an asset to the release
uses: softprops/action-gh-release@v1
with:
files: |
./Release/Release/wrapwrap.exe