|
23 | 23 | - name: Lint |
24 | 24 | run: cmake -D FORMAT_COMMAND=clang-format -P cmake/lint.cmake |
25 | 25 |
|
26 | | - # - uses: actions/setup-python@v5 |
27 | | - # with: { python-version: "3.12" } |
28 | | - |
29 | | - # - name: Install codespell |
30 | | - # run: pip3 install codespell |
31 | | - |
32 | | - # - name: Spell check |
33 | | - # if: always() |
34 | | - # run: cmake -P cmake/spell.cmake |
35 | | - |
36 | 26 | coverage: |
37 | 27 | needs: [lint] |
38 | 28 |
|
@@ -136,51 +126,3 @@ jobs: |
136 | 126 | - name: Test |
137 | 127 | working-directory: build |
138 | 128 | run: ctest --output-on-failure --no-tests=error -C Release -j 2 |
139 | | - |
140 | | - docs: |
141 | | - # Deploy docs only when builds succeed |
142 | | - needs: [sanitize, test] |
143 | | - |
144 | | - runs-on: ubuntu-22.04 |
145 | | - |
146 | | - # To enable, first you have to create an orphaned gh-pages branch: |
147 | | - # |
148 | | - # git switch --orphan gh-pages |
149 | | - # git commit --allow-empty -m "Initial commit" |
150 | | - # git push -u origin gh-pages |
151 | | - # |
152 | | - # Edit the <name> placeholder below to your GitHub name, so this action |
153 | | - # runs only in your repository and no one else's fork. After these, delete |
154 | | - # this comment and the last line in the conditional below. |
155 | | - # If you do not wish to use GitHub Pages for deploying documentation, then |
156 | | - # simply delete this job similarly to the coverage one. |
157 | | - if: github.ref == 'refs/heads/master' |
158 | | - && github.event_name == 'push' |
159 | | - && github.repository_owner == 'thinks' |
160 | | - && false |
161 | | - |
162 | | - permissions: |
163 | | - contents: write |
164 | | - |
165 | | - steps: |
166 | | - - uses: actions/checkout@v4 |
167 | | - |
168 | | - - uses: actions/setup-python@v5 |
169 | | - with: { python-version: "3.12" } |
170 | | - |
171 | | - - name: Install m.css dependencies |
172 | | - run: pip3 install jinja2 Pygments |
173 | | - |
174 | | - - name: Install Doxygen |
175 | | - run: sudo apt-get update -q |
176 | | - && sudo apt-get install doxygen -q -y |
177 | | - |
178 | | - - name: Build docs |
179 | | - run: cmake "-DPROJECT_SOURCE_DIR=$PWD" "-DPROJECT_BINARY_DIR=$PWD/build" |
180 | | - -P cmake/docs-ci.cmake |
181 | | - |
182 | | - - name: Deploy docs |
183 | | - uses: peaceiris/actions-gh-pages@v4 |
184 | | - with: |
185 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
186 | | - publish_dir: build/docs/html |
0 commit comments