Utilize CDeps.cmake #256
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: | |
build-project: | |
name: Build Project | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.0 | |
- name: Configure Project | |
uses: threeal/cmake-action@v2.0.0 | |
with: | |
run-build: false | |
- name: Build Project | |
run: cmake --build build --config Release | |
- name: Install Project | |
run: cmake --install build --prefix install | |
- name: Upload Project | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: package-${{ matrix.os }} | |
path: install | |
build-examples: | |
name: Build Examples | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.0 | |
- name: Configure Project | |
uses: threeal/cmake-action@v2.0.0 | |
with: | |
options: BUILD_EXAMPLES=ON | |
run-build: false | |
- name: Build Examples | |
run: cmake --build build --target examples | |
build-docs: | |
name: Build Documentation | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.0 | |
- name: Install Doxygen | |
run: sudo apt-get install -y doxygen | |
- name: Configure Project | |
uses: threeal/cmake-action@v2.0.0 | |
with: | |
options: BUILD_DOCS=ON | |
run-build: false | |
- name: Build Documentation | |
run: cmake --build build --target docs | |
- name: Upload Documentation | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: build/docs/html |