up #26
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 | |
- name: Checkout repository with submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- 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 |