Skip to content

Commit

Permalink
GitHub Actions: build project by invoking cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimaciel committed Nov 12, 2023
1 parent 05900a8 commit 318b7c2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: sudo apt-get install check
- name: create build directory
run: mkdir build
- name: configure
run: cmake .. -DENABLE_TESTS=OFF
working-directory: ./build
- name: make
run: make
working-directory: ./build
run: sudo apt-get install -y cmake check
- name: configure cmake
run: cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DENABLE_TESTS=OFF -B./build -G "Unix Makefiles"
- name: build with cmake
run: cmake --build ./build --config Debug --target all
- name: Generate packages with CPack
run: make package
working-directory: ./build
Expand Down

0 comments on commit 318b7c2

Please sign in to comment.