Skip to content

Commit

Permalink
Merge pull request #4 from golxzn/develop
Browse files Browse the repository at this point in the history
Implement Linux tests and documentation
  • Loading branch information
golxzn authored Jul 23, 2023
2 parents 17ec237 + f91606f commit 09339c2
Show file tree
Hide file tree
Showing 28 changed files with 3,364 additions and 1,480 deletions.
7 changes: 7 additions & 0 deletions .github/clang-14.profile
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
9 changes: 9 additions & 0 deletions .github/g++-13.profile
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


63 changes: 53 additions & 10 deletions .github/workflows/ci-test-static-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CMake

on:
push:
branches: [ "main" ]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "develop" ]

env:
BUILD_TYPE: Release
Expand All @@ -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 }}

Expand All @@ -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
Loading

0 comments on commit 09339c2

Please sign in to comment.