Skip to content

Commit

Permalink
Actions/private rep cloning (#8)
Browse files Browse the repository at this point in the history
* Add building rust project

* Add waiting building into actions

* Add badge to README.md
  • Loading branch information
breadrock1 authored Aug 30, 2023
1 parent b334f36 commit eb1ab26
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
54 changes: 29 additions & 25 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ on:

jobs:

build:
name: Build
runs-on: ubuntu-20.04
permissions:
contents: write

steps:
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y build-essential curl \
cmake clang libclang-dev llvm llvm-dev \
qt5-default libopencv-dev \
python3-dev python3-numpy python3-opencv
- name: Checkout code
uses: actions/checkout@v2

- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Build project
run: cargo build --verbose --jobs $(nproc)

flake8:
name: Code style
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -86,3 +61,32 @@ jobs:
- name: Analysing the code with pylint
run: |
pylint --rcfile=.pylintrc --output=pylint.log --jobs 10 ./python/pycvl
build:
name: Build
runs-on: ubuntu-20.04
needs: [ pylint ]
permissions:
contents: write

steps:
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y build-essential curl \
cmake clang libclang-dev llvm llvm-dev \
qt5-default libopencv-dev \
python3-dev python3-numpy python3-opencv
- name: Checkout code
uses: actions/checkout@v2

- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- uses: PyO3/maturin-action@v1
with:
command: build
args: --release
rust-toolchain: nightly
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

![GitHub version](https://img.shields.io/badge/version-v0.0.1-green?style=plastic&labelColor=dark)

[![Pull Request Checking](https://github.com/breadrock1/PyCvl/actions/workflows/pull-request.yml/badge.svg)](https://github.com/breadrock1/PyCvl/actions/workflows/pull-request.yml)

### Program Description

The `PyCvl` project is a `Python` bindings based on `CVLCore` private repository which provides ability to use core `APIs` for continuous analysis of a video stream including generating `vibro-image`.
Expand Down

0 comments on commit eb1ab26

Please sign in to comment.