Skip to content

Commit

Permalink
update c-cpp.yml with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuLingQing committed Mar 17, 2024
1 parent 8f77298 commit 8b02c07
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,21 @@ jobs:
- uses: actions/checkout@v1
- 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: cmake --version
- name: make the project
run: |
mkdir build
pushd build
./test_pt_os
cmake ..
make
popd
- name: test
run: |
pushd build
make test
popd
- name: test with bash
run: |
./build/tests/test_pt_os
echo "DONE
"

0 comments on commit 8b02c07

Please sign in to comment.