-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from golxzn/develop
Implement Linux tests and documentation
- Loading branch information
Showing
28 changed files
with
3,364 additions
and
1,480 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[settings] | ||
os=Linux | ||
arch=x86_64 | ||
build_type=Release | ||
compiler=clang | ||
compiler.libcxx=libstdc++12 | ||
compiler.version=14 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[settings] | ||
os=Linux | ||
arch=x86_64 | ||
build_type=Release | ||
compiler=g++ | ||
compiler.libcxx=libstdc++12 | ||
compiler.version=13 | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: CMake | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: [ "main", "develop" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ "main", "develop" ] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
@@ -13,8 +13,8 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
os: [windows-2022] # + ubuntu-latest, macos-latest] To implement those platforms | ||
# we need to create ci-<OS> presets for CMake. | ||
os: [windows-2022, ubuntu-latest] # + macos-latest] To implement those platforms | ||
# we need to create ci-<OS> presets for CMake. | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
|
@@ -24,18 +24,61 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get GCC | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: 13 | ||
platform: x64 | ||
|
||
- name: Get Ninja | ||
uses: ashutoshvarma/[email protected] | ||
with: | ||
version: 1.10.0 | ||
|
||
- name: Configure | ||
shell: pwsh | ||
run: cmake "--preset=ci-${{ env.platform }}" --fresh | ||
|
||
- name: Build | ||
shell: pwsh | ||
run: cmake --build "--preset=ci-${{ env.platform }}-build" | ||
|
||
- name: Install | ||
shell: pwsh | ||
run: cmake --install "build/ci-${{ env.platform }}" --config ${{ env.BUILD_TYPE }} --prefix prefix | ||
run: cmake --build "--preset=ci-${{ env.platform }}" | ||
|
||
- name: Test | ||
shell: pwsh | ||
run: ctest "--preset=ci-${{ env.platform }}-test" | ||
run: ctest "--preset=ci-${{ env.platform }}" | ||
|
||
docs: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get GCC | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: 13 | ||
platform: x64 | ||
|
||
- name: Get Ninja | ||
uses: ashutoshvarma/[email protected] | ||
with: | ||
version: 1.10.0 | ||
|
||
|
||
- name: Install Doxygen | ||
uses: ssciwr/[email protected] | ||
|
||
- name: Configure | ||
run: cmake --preset=ci-ubuntu -DGRM_GENERATE_DOCS=ON --fresh | ||
|
||
- name: Generate documentation | ||
run: cmake --build --preset=ci-ubuntu --target generate_docs | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/html |
Oops, something went wrong.