Skip to content

Commit 2642afb

Browse files
committed
added workflow
1 parent 81ce15e commit 2642afb

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
21+
- name: Setup CMake caching
22+
uses: actions/cache@v4
23+
with:
24+
# Cache the CMake build directory
25+
path: build
26+
key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-cmake-
29+
30+
- name: Install dependencies
31+
run: |
32+
sudo apt update
33+
sudo apt install -y cmake ocl-icd-opencl-dev opencl-headers libopencv-dev
34+
35+
- name: Build with CMake
36+
run: |
37+
cd /home/runner/work/OpenCL-Development-Real-time-Image-Processing/OpenCL-Development-Real-time-Image-Processing/
38+
mkdir -p build
39+
cmake -S . -B build
40+
cd build
41+
make

0 commit comments

Comments
 (0)