Skip to content

Documentation update, testing split, hardened compiler security. #18

Documentation update, testing split, hardened compiler security.

Documentation update, testing split, hardened compiler security. #18

name: Windows Release Package
on:
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Install Catch2 v3 from source
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
git checkout v3.5.2
cmake -Bbuild -S. -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build build/ --target install
- name: Prep License File for Distribution
run: cp LICENSE License.txt
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="/O0"
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C Release
- name: Package
working-directory: ${{github.workspace}}/build/
run: cpack
- name: Archive Build Artifacts
uses: actions/upload-artifact@v3
with:
name: windows-2022
path: |
${{github.workspace}}/build/sac-format.exe*
retention-days: 1