Skip to content

Commit 303d32b

Browse files
authored
Merge pull request #474 from Nuzhny007/master
Split workflows
2 parents 800e180 + c575098 commit 303d32b

File tree

4 files changed

+60
-73
lines changed

4 files changed

+60
-73
lines changed

.github/workflows/c-cpp.yml

-72
This file was deleted.

.github/workflows/macos.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Macos C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build-macos:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: |
17+
brew update
18+
brew install opencv cmake
19+
20+
- name: Configure CMake
21+
run: |
22+
mkdir -p build
23+
cd build
24+
cmake ..
25+
26+
- name: Build
27+
working-directory: build
28+
run: make
29+

.github/workflows/ubuntu.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Ubuntu C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build-linux:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y libopencv-dev cmake g++
19+
20+
- name: Configure CMake
21+
run: |
22+
mkdir -p build
23+
cd build
24+
cmake ..
25+
26+
- name: Build
27+
working-directory: build
28+
run: make
29+

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Status](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/c-cpp.yml/badge.svg)](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/c-cpp.yml)
1+
[![Ubuntu](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/ubuntu.yml/badge.svg)](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/ubuntu.yml)
2+
[![MacOS](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/macos.yml/badge.svg)](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/macos.yml)
23
[![CodeQL](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Smorodov/Multitarget-tracker/blob/master/.github/workflows/codeql-analysis.yml)
34

45
# Last changes

0 commit comments

Comments
 (0)