Skip to content

Commit

Permalink
v1.2 (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Mar 28, 2023
1 parent b8ef27d commit 5000ac1
Show file tree
Hide file tree
Showing 354 changed files with 18,874 additions and 2,974 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/android-appcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:
- 'demo/android/LeopardDemo/**'
- '!demo/android/LeopardDemo/README.md'
- '.github/workflows/android-appcenter.yml'
- 'resources/audio_samples/**'
- 'resources/test/**'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'demo/android/LeopardDemo/**'
- '!demo/android/LeopardDemo/README.md'
- '.github/workflows/android-appcenter.yml'
- 'resources/audio_samples/**'
- 'resources/test/**'

defaults:
run:
Expand All @@ -25,7 +29,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
initPerformanceThresholdSec: 3.0
procPerformanceThresholdSec: 0.5
- device: 32bit-android
initPerformanceThresholdSec: 7.0
procPerformanceThresholdSec: 1.75
initPerformanceThresholdSec: 8.0
procPerformanceThresholdSec: 3.5

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/[email protected]
Expand Down
247 changes: 82 additions & 165 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,200 +5,117 @@ on:
push:
branches: [ master ]
paths:
- '!demo/c/README.md'
- '.github/workflows/c-demos.yml'
- 'demo/c/**'
- '!demo/c/README.md'
- 'include/**'
- 'lib/common/**'
- 'lib/linux/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
- 'lib/windows/**'
- 'resources/audio_samples/**'
- 'resources/test/**'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '!demo/c/README.md'
- '.github/workflows/c-demos.yml'
- 'demo/c/**'
- '!demo/c/README.md'
- 'include/**'
- 'lib/common/**'
- 'lib/linux/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
- 'lib/windows/**'
- 'resources/audio_samples/**'
- 'resources/test/**'

defaults:
run:
working-directory: .
working-directory: demo/c

jobs:
ubuntu:
runs-on: ubuntu-latest
build-demo-github-hosted:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
platform: linux
arch: x86_64
make_file: "Unix Makefiles"
- os: windows-latest
platform: windows
arch: amd64
make_file: "MinGW Makefiles"
- os: macos-latest
platform: mac
arch: x86_64
make_file: "Unix Makefiles"

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/linux/x86_64/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
macos:
runs-on: macos-latest
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python '3.10'
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Create build directory
run: cmake -G "${{ matrix.make_file }}" -B ./build

- name: Build demo
run: cmake --build ./build --target leopard_demo

- name: Install dependencies
run: pip install -r test/requirements.txt

- name: Test
run: python test/test_leopard_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}

build-demo-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
platform: raspberry-pi
arch: cortex-a53
- machine: rpi3-64
platform: raspberry-pi
arch: cortex-a53-aarch64
- machine: rpi4-32
platform: raspberry-pi
arch: cortex-a72
- machine: rpi4-64
platform: raspberry-pi
arch: cortex-a72-aarch64
- machine: jetson
platform: jetson
arch: cortex-a57-aarch64

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/mac/x86_64/libpv_leopard.dylib \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
windows:
runs-on: windows-latest

defaults:
run:
shell: cmd

steps:
- uses: actions/checkout@v2

- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64

- name: CMake
run: cmake -S demo/c/ -B demo/c/build -G "MinGW Makefiles"

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
demo\\c\\build\\leopard_demo.exe ^
-a ${{secrets.PV_VALID_ACCESS_KEY}} ^
-l lib\\windows\\amd64\\libpv_leopard.dll ^
-m lib\\common\\leopard_params.pv ^
resources\\audio_samples\\test.wav
jetson:
runs-on: jetson

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/jetson/cortex-a57-aarch64/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
rpi4-32:
runs-on: rpi4-32

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/raspberry-pi/cortex-a72/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
rpi4-64:
runs-on: rpi4-64

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/raspberry-pi/cortex-a72-aarch64/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
rpi3-32:
runs-on: rpi3-32

steps:
- uses: actions/checkout@v2

- name: CMake
run: cmake -S demo/c/ -B demo/c/build

- name: Build
run: cmake --build demo/c/build

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/raspberry-pi/cortex-a53/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
rpi3-64:
runs-on: rpi3-64

steps:
- uses: actions/checkout@v2
- name: Create build directory
run: cmake -B ./build

- name: CMake
run: cmake -S demo/c/ -B demo/c/build
- name: Build demo
run: cmake --build ./build --target leopard_demo

- name: Build
run: cmake --build demo/c/build
- name: Install dependencies
run: pip install -r test/requirements.txt

- name: Test
run: |
./demo/c/build/leopard_demo \
-a ${{secrets.PV_VALID_ACCESS_KEY}} \
-l lib/raspberry-pi/cortex-a53-aarch64/libpv_leopard.so \
-m lib/common/leopard_params.pv \
resources/audio_samples/test.wav
- name: Test
run: python3 test/test_leopard_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
34 changes: 34 additions & 0 deletions .github/workflows/dotnet-codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: .NET Codestyle

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- '**/*.cs'
- '.github/workflows/dotnet-codestyle.yml'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '**/*.cs'
- '.github/workflows/donet-codestyle.yml'

jobs:
check-dotnet-codestyle:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Run Binding Codestyle
run: dotnet format --verify-no-changes
working-directory: binding/dotnet

- name: Run Demo Codestyle
run: dotnet format --verify-no-changes
working-directory: demo/dotnet
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
Expand Down
Loading

0 comments on commit 5000ac1

Please sign in to comment.