Generate doxygen documentation in Github pages #81
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
name: ci | |
on: | |
pull_request: | |
branches: | |
- dev | |
- master | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
ci-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
container: | |
image: yanzhaowang/srs-env:fedora-41 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: install and env vars | |
run: | | |
dnf install -y conan nodejs | |
cd $GITHUB_WORKSPACE/.. | |
echo "PARENT_DIR=$PWD" >> $GITHUB_ENV | |
echo "CONAN_HOME=$PWD/.conan2" >> $GITHUB_ENV | |
- name: restore cache | |
id: cache-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
${{ env.PARENT_DIR }}/.conan2 | |
key: srs-cache | |
- name: build | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
cmake --preset default | |
cmake --build ./build -- -j2 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: test | |
run: | | |
cd build/bin | |
./srs_backend_test --gtest_output=xml | |
- name: publish test report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Google test | |
path: 'build/bin/test_detail.xml' | |
fail-on-error: true | |
reporter: java-junit | |
- name: cache-delete | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
gh cache delete ${{ steps.cache-restore.outputs.cache-primary-key }} || true | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: save cache | |
id: cache-save | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
${{ env.PARENT_DIR }}/.conan2 | |
key: ${{ steps.cache-restore.outputs.cache-primary-key }} |