build: utilize PROJECT_IS_TOP_LEVEL
variable (#53)
#162
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
release: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4.1.7 | |
- name: Configure and build the project | |
uses: threeal/cmake-action@v1.3.0 | |
with: | |
run-build: true | |
- name: Configure and build the project with examples | |
uses: threeal/cmake-action@v1.3.0 | |
with: | |
options: BUILD_EXAMPLE=ON | |
run-build: true |