Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefMarlin committed Aug 12, 2023
1 parent 6aed9e1 commit 02278a1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,27 @@ jobs:
- name: Install dependencies
run: go mod download

- name: Install OpenCV dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ wget unzip
sudo apt-get install -y libgtk-3-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install -y libxvidcore-dev libx264-dev
- name: Install OpenCV
run: |
wget -O opencv.zip https://github.com/opencv/opencv/archive/refs/tags/4.5.2.zip
unzip opencv.zip
mkdir -p build && cd build
cmake ../opencv-4.5.2
make -j$(nproc)
sudo make install
- name: Install GoCV
run: |
go get -u -d gocv.io/x/gocv
cd $GOPATH/src/gocv.io/x/gocv
cd $(go env GOPATH)/pkg/mod/gocv.io/x/gocv@latest
make install
- name: Download releaseMaker
Expand Down

0 comments on commit 02278a1

Please sign in to comment.