clang-format Objective-C files too #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
with: | |
submodules: recursive | |
- 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 |