-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from embhorn/zd17139
Add cmake CI test and fix pthread detection
- Loading branch information
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: wolfMQTT CMake Build Tests | ||
|
||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Install cmake | ||
- name: Install cmake | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake | ||
#pull and build wolfssl | ||
- uses: actions/checkout@master | ||
with: | ||
repository: wolfssl/wolfssl | ||
path: wolfssl | ||
- name: Build wolfssl | ||
working-directory: ./wolfssl | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . | ||
sudo cmake --install . | ||
#pull wolfMQTT | ||
- uses: actions/checkout@master | ||
|
||
#build wolfMQTT | ||
- name: Build wolfMQTT | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . |
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