Refactor to create a proper CMake target. #1
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: Build Github++ | |
on: | |
push: | |
branches: master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Github++ build | |
shell: pwsh | |
run: | | |
cmake --preset vs2022-windows "-DCMAKE_INSTALL_PREFIX=install" | |
- name: Build Github++ | |
run: cmake --build vsbuild --config RelWithDebInfo | |
- name: Install Github++ | |
run: cmake --install vsbuild --config RelWithDebInfo | |
- name: Upload Github++ artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: githubpp | |
path: ./install |