-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e502d64
commit 2d10d16
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
name: Build and Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Update Package Index | ||
run: sudo apt-get update | ||
|
||
- name: Install Boost | ||
run: sudo apt-get install -y libboost-all-dev | ||
|
||
- name: Install OpenCV | ||
run: sudo apt-get install -y libopencv-dev | ||
|
||
- name: Install WebSocket++ | ||
run: | | ||
git clone --branch 0.8.2 https://github.com/zaphoyd/websocketpp.git | ||
sudo cp -r ./websocketpp/websocketpp ./include | ||
- name: Build project | ||
run: make | ||
|
||
test: | ||
needs: build | ||
|
||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests | ||
run: make test_ALL |