Skip to content

Merge pull request #5 from ClausKlein/feature/fix-typos-with-codespell #16

Merge pull request #5 from ClausKlein/feature/fix-typos-with-codespell

Merge pull request #5 from ClausKlein/feature/fix-typos-with-codespell #16

Workflow file for this run

name: Superbuild example
on:
push:
pull_request:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
windows-superbuild:
name: windows-superbuild
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: dependencies (windows)
run: |
choco install -y --limit-output ninja
choco install -y --limit-output openssl --version="3.1.1"
# because windows has a limit on the path length, we need to copy the example to a shorter path
- name: copy example to a shorter path
run: |
cp -r ./chapter10/ex03_simple_qt_app ./ch10_ex03
shell: bash
- name: correct-tmp-dir (win)
run: |
echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
echo "TMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
shell: pwsh
#this internally calls the vcvarsall.bat script to setup the environment
- name: setup-msvc-dev
uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
- name: cmake-configure
run: |
cmake -S . -B ./build -GNinja -DCH10_EX03_USE_SUPERBUILD=ON -DCMAKE_BUILD_TYPE=Debug
working-directory: ./ch10_ex03
- name: build
run: |
cmake --build ./build
working-directory: ./ch10_ex03