Skip to content

Commit

Permalink
wip ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-chedaleux committed Aug 8, 2023
1 parent b3df783 commit 2c9aa9f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: API documentation generation

on:
push:
branches:
- generate-api-doc

permissions:
pages: write
id-token: write

jobs:
doc:
runs-on: ubuntu-latest
container: hrektts/doxygen
steps:
- uses: actions/checkout@v3
- run: |
doxygen doc/doxygen.cfg
mv html _site
mv _site/group__uprofile.html _site/index.html
name: Generate doc
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
4 changes: 2 additions & 2 deletions lib/uprofile.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ UPROFAPI void start(const char* file);
* @ingroup uprofile
* @brief Stop all monitorings
*
* Note: stopping profiler on an no-started profiler has no effect
* Note: stopping profiler without prior call to start() has no effect
*/
UPROFAPI void stop();

Expand Down Expand Up @@ -153,7 +153,7 @@ UPROFAPI void getSystemMemory(int& totalMem, int& availableMem, int& freeMem);
/**
* @ingroup uprofile
* @brief get usage of all cpu cores
* @return vector of percentage
* @return vector holding the usage percentage of each CPU core
*/
UPROFAPI std::vector<float> getInstantCpuUsage();
}
Expand Down

0 comments on commit 2c9aa9f

Please sign in to comment.