Update README.md #14
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: C++ CI Push Main | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build-package: | |
runs-on: [self-hosted, Linux, X64, ubuntu-latest-lts] | |
# Condition to check if it's not a pull request merge | |
if: ${{ github.event_name == 'push' && github.event.pull_request == null }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set PATH for pipx binaries | |
run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | |
- name: Show ccache stats before build | |
run: ccache -s | |
- name: Get latest release tag | |
id: latest-tag | |
run: echo "::set-output name=tag::$(git describe --tags `git rev-list --tags --max-count=1`)" | |
- name: Cache ccache and dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/home/gh-runner/.cache/ccache | |
key: ${{ runner.os }}-ccache-${{ steps.latest-tag.outputs.tag }} | |
restore-keys: | | |
${{ runner.os }}-ccache- | |
${{ runner.os }}-ccache-${{ steps.latest-tag.outputs.tag }} | |
- name: Install Package Dependencies | |
run: | | |
conan install . --build=missing | |
- name: Compile and Link | |
run: | | |
conan build . -pr:a vps-release --build=missing | |
- name: Show ccache stats after build | |
run: ccache -s | |
- name: Create Package | |
run: | | |
cd /home/gh-runner/actions-runner/_work/BoundedPriorityDeque/BoundedPriorityDeque | |
conan create . -pr:a vps-release --build=missing | |
- name: Upload Packages to Artifactory | |
run: | | |
conan upload "*" -r vps-local --confirm | |
- name: Generate & Publish Doxygen Documentation | |
run: | | |
cd /home/gh-runner/actions-runner/_work/BoundedPriorityDeque/BoundedPriorityDeque | |
doxygen Doxyfile |