update c-cpp.yml for ci, run to one line #7
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
name: C/C++ CI | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check the environment | |
run: g++ --version && git --version && bash --version | |
- name: list the environment | |
run: ls -la | |
- name: build with bash | |
run: bash bash_build.sh | |
- name: run tests | |
run: pushd build && ./test_pt_os &&popd |