adopts google c++ style guide #9
Workflow file for this run
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
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: C++ Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Github checkout action | https://github.com/actions/checkout | |
# Private repo checkout | https://github.com/actions/checkout/issues/116#issuecomment-644419389 | |
# Generate a PAT (personal access token) for your account, then add the PAT to repositories | |
# that need it (as a `secret`) to access other private repositories in your account for GitHub Action | |
- name: Checkout repository with submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
token: ${{ secrets.ZJ_REPO_PAT }} | |
- name: Install common dependencies | |
run: bash ./scripts/zj-common-scripts/zj-dependencies.bash | |
- name: Install package dependencies | |
run: bash ./scripts/zj-package-dependencies.bash | |
- name: Build, test, and install | |
run: bash ./scripts/zj-common-scripts/zj-build-install-example.bash | |
- name: Build and run client project example | |
run: bash ./client-project-example/zj-build-run-client-example.bash | |
- name: Setup and run pre-commit | |
run: bash ./scripts/zj-common-scripts/zj-pre-commit.bash |