Skip to content

CPACK_NSIS_MENU_LINKS #24

CPACK_NSIS_MENU_LINKS

CPACK_NSIS_MENU_LINKS #24

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags:
- '**'
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
CMAKE_BUILD_PRESET: "windows-release"
PLOT_MANAGER_VERSION: ${{ github.ref_name }}
jobs:
msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: lukka/get-cmake@latest
- name: Run CMake consuming CMakePreset.json and vcpkg.json by mean of vcpkg.
uses: lukka/run-cmake@v10
with:
configurePreset: ${{ env.CMAKE_BUILD_PRESET }}
buildPreset: ${{ env.CMAKE_BUILD_PRESET }}
- name: Run CPack
run: cpack -C Release --config build/${{ env.CMAKE_BUILD_PRESET }}/CPackConfig.cmake -B build/${{ env.CMAKE_BUILD_PRESET }}/!package
- name: Zip files
run: Get-ChildItem "./build/${{ env.CMAKE_BUILD_PRESET }}/!package" -Filter *.exe | Foreach-Object { 7z a ( (Convert-Path $_.PSParentPath) + "\" + $_.BaseName + ".zip") $_.FullName }
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: "package"
path: ./build/${{ env.CMAKE_BUILD_PRESET }}/!package/*.exe
- name: Upload a Build Artifact to release
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/${{ env.CMAKE_BUILD_PRESET }}/!package/*.zip
file_glob: true
tag: ${{ github.ref }}
overwrite: true