Skip to content

Commit d16188c

Browse files
committed
fix gh workflow
1 parent 5705c0c commit d16188c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ runs:
4242
elif [[ "${{ matrix.name }}" == Windows-x86_64* ]]; then
4343
cmake -B build -DCMAKE_BUILD_TYPE=${{ inputs.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache ${{ inputs.CMAKE_BUILD_ARGS }}
4444
else
45-
echo "Unknown OS";
45+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ inputs.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache ${{ inputs.CMAKE_BUILD_ARGS }}
4646
fi;
4747
4848
- name: build targets

.github/workflows/build_docs_and_deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111

1212
env:
1313
SCCACHE_GHA_ENABLED: "true"
14-
matrix.name: "Linux-x86_64"
15-
matrix.os: "ubuntu-latest"
1614

1715
# When pushing new commits, cancel any workflows with the same name on that branch
1816
concurrency:
@@ -21,7 +19,7 @@ concurrency:
2119

2220
jobs:
2321
build_docs:
24-
runs-on: ${{ matrix.os }}
22+
runs-on: ubuntu-latest
2523
steps:
2624
- name: get repo and submodules
2725
uses: actions/checkout@v4
@@ -32,7 +30,7 @@ jobs:
3230
uses: ./.github/actions/setup
3331
- name: dependencies
3432
run: |
35-
sudo apt-get install -y doxygen graphviz python3-sphinx python3-breathe python3-furo
33+
sudo apt-get install -y doxygen graphviz python3-sphinx python3-breathe furo
3634
- name: build
3735
uses: ./.github/actions/build
3836
with:
@@ -48,6 +46,7 @@ jobs:
4846
# Deployment job
4947
deploy:
5048
needs: build_docs
49+
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
5150
permissions:
5251
pages: write
5352
id-token: write

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
![build_test](https://github.com/anira-project/anira/actions/workflows/build_test.yml/badge.svg)
44
![build_benchmark](https://github.com/anira-project/anira/actions/workflows/build_benchmark.yml/badge.svg)
55
![build_examples](https://github.com/anira-project/anira/actions/workflows/build_examples.yml/badge.svg)
6+
![build_docs](https://github.com/anira-project/anira/actions/workflows/build_docs_and_deploy.yml/badge.svg)
67
![on_tag](https://github.com/anira-project/anira/actions/workflows/on_tag.yml/badge.svg)
78

89
---

docs/sphinx/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ anira Documentation
1717
.. |build_examples| image:: https://github.com/anira-project/anira/actions/workflows/build_examples.yml/badge.svg
1818
:target: https://github.com/anira-project/anira/actions/workflows/build_examples.yml
1919

20+
.. |build_docs| image:: https://github.com/anira-project/anira/actions/workflows/build_docs_and_deploy.yml/badge.svg
21+
:target: https://github.com/anira-project/anira/actions/workflows/build_docs_and_deploy.yml
22+
2023
.. |on_tag| image:: https://github.com/anira-project/anira/actions/workflows/on_tag.yml/badge.svg
2124
:target: https://github.com/anira-project/anira/actions/workflows/on_tag.yml
2225

0 commit comments

Comments
 (0)