-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And make sure all yaml files validate. Squashed commit of the following: commit c6e2c23 Author: Paul Colby <[email protected]> Date: Sat Oct 5 18:36:48 2024 +1000 Correct Bash syntax Because leading indents still result in new-line characters in folded block scalars. commit e6e9b6f Author: Paul Colby <[email protected]> Date: Sat Oct 5 17:03:46 2024 +1000 Correct workflow syntax commit 3e0662e Author: Paul Colby <[email protected]> Date: Sat Oct 5 17:02:46 2024 +1000 Correct workflow step syntax commit cd645c0 Author: Paul Colby <[email protected]> Date: Sat Oct 5 17:01:42 2024 +1000 Correct indentation commit b229fd5 Author: Paul Colby <[email protected]> Date: Sat Oct 5 16:58:21 2024 +1000 Add a yamlint workflow And make sure all yaml files validate.
- Loading branch information
Showing
8 changed files
with
676 additions
and
617 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
api: | ||
- changed-files: | ||
- any-glob-to-any-file: 'include/**' | ||
- any-glob-to-any-file: 'include/**' | ||
|
||
cmake: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/CMakeLists.txt' | ||
- any-glob-to-any-file: '**/CMakeLists.txt' | ||
|
||
lib: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- 'include/**' | ||
- 'src/lib/**' | ||
- any-glob-to-any-file: | ||
- 'include/**' | ||
- 'src/lib/**' | ||
|
||
tests: | ||
- changed-files: | ||
- any-glob-to-any-file: 'test/**' | ||
- any-glob-to-any-file: 'test/**' |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Documentation | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -12,34 +12,37 @@ jobs: | |
generate: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install Doxygen | ||
run: | | ||
sudo apt-mark hold grub-efi-amd64-signed | ||
sudo apt update | ||
sudo apt upgrade | ||
sudo apt install graphviz qtbase5-dev qtbase5-doc-dev qtconnectivity5-dev qtconnectivity5-doc-html qttools5-dev qttools5-dev-tools | ||
curl --location --silent "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" | | ||
tar --extract --gzip --directory "$RUNNER_TEMP" | ||
"$RUNNER_TEMP/doxygen-${DOXYGEN_VERSION}/bin/doxygen" --version | ||
- name: Build docs | ||
run: | | ||
cmake -D "DOXYGEN_EXECUTABLE=$RUNNER_TEMP/doxygen-${DOXYGEN_VERSION}/bin/doxygen" -S "$GITHUB_WORKSPACE" -B "$RUNNER_TEMP" | ||
cmake --build "$RUNNER_TEMP" --target doc doc-internal | ||
- name: Upload public docs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: public-docs | ||
path: "${{ runner.temp }}/doc/public" | ||
if-no-files-found: error | ||
- name: Upload internal docs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: internal-docs | ||
path: "${{ runner.temp }}/doc/internal" | ||
if-no-files-found: error | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install Doxygen | ||
env: | ||
BASE_URL: https://github.com/doxygen/doxygen/releases/download/Release_ | ||
run: | | ||
sudo apt-mark hold grub-efi-amd64-signed | ||
sudo apt update | ||
sudo apt upgrade | ||
sudo apt install graphviz qtbase5{,-doc}-dev qtconnectivity5-{dev,doc-html} qttools5-dev{,-tools} | ||
curl --location --silent "${BASE_URL}${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" | | ||
tar --extract --gzip --directory "$RUNNER_TEMP" | ||
"$RUNNER_TEMP/doxygen-${DOXYGEN_VERSION}/bin/doxygen" --version | ||
- name: Build docs | ||
run: | | ||
cmake -D "DOXYGEN_EXECUTABLE=$RUNNER_TEMP/doxygen-${DOXYGEN_VERSION}/bin/doxygen" \ | ||
-S "$GITHUB_WORKSPACE" -B "$RUNNER_TEMP" | ||
cmake --build "$RUNNER_TEMP" --target doc doc-internal | ||
- name: Upload public docs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: public-docs | ||
path: "${{ runner.temp }}/doc/public" | ||
if-no-files-found: error | ||
- name: Upload internal docs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: internal-docs | ||
path: "${{ runner.temp }}/doc/internal" | ||
if-no-files-found: error | ||
|
||
publish: | ||
permissions: | ||
|
@@ -48,33 +51,33 @@ jobs: | |
if: success() && (github.ref == 'refs/heads/main') | ||
needs: generate | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { ref: doc } | ||
- name: Clear previous docs | ||
run: rm -rf main/{doc,int} | ||
- name: Download public docs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: public-docs | ||
path: main/doc | ||
- name: Download internal docs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: internal-docs | ||
path: main/int | ||
- name: Inject version selectors | ||
run: ./.selector.sh | ||
- name: Inspect changes # for diagnostics only. | ||
run: | | ||
git status | ||
git diff | ||
- name: Push updates | ||
run: | | ||
[[ -z $(git status --porcelain) ]] || { | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull | ||
git add . | ||
git commit -m "Update generated docs for ${GITHUB_SHA}" | ||
git push | ||
} | ||
- uses: actions/checkout@v4 | ||
with: { ref: doc } | ||
- name: Clear previous docs | ||
run: rm -rf main/{doc,int} | ||
- name: Download public docs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: public-docs | ||
path: main/doc | ||
- name: Download internal docs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: internal-docs | ||
path: main/int | ||
- name: Inject version selectors | ||
run: ./.selector.sh | ||
- name: Inspect changes # for diagnostics only. | ||
run: | | ||
git status | ||
git diff | ||
- name: Push updates | ||
run: | | ||
[[ -z $(git status --porcelain) ]] || { | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull | ||
git add . | ||
git commit -m "Update generated docs for ${GITHUB_SHA}" | ||
git push | ||
} |
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
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
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
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,24 @@ | ||
extends: default | ||
|
||
ignore: /doc/doxygen-awesome-css | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
min-spaces-inside: 1 | ||
brackets: | ||
max-spaces-inside: 1 | ||
min-spaces-inside: 1 | ||
commas: | ||
max-spaces-after: -1 | ||
comments: | ||
min-spaces-from-content: 1 | ||
document-start: disable | ||
indentation: | ||
check-multi-line-strings: false | ||
indent-sequences: true | ||
spaces: 2 | ||
line-length: | ||
max: 120 | ||
truthy: | ||
check-keys: false |