Skip to content

Commit

Permalink
Add Build and Test GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeAllstar committed Nov 4, 2023
1 parent e502d64 commit 2d10d16
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/makefile.yml
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

0 comments on commit 2d10d16

Please sign in to comment.