mirror of https://github.com/AlexeyAB/darknet.git
430 lines
13 KiB
YAML
430 lines
13 KiB
YAML
name: Darknet Pull Requests
|
|
|
|
on: [pull_request]
|
|
|
|
env:
|
|
VCPKG_BINARY_SOURCES: 'clear;nuget,vcpkgbinarycache,read'
|
|
|
|
jobs:
|
|
ubuntu-makefile:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install libopencv-dev
|
|
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.sh
|
|
|
|
- name: 'Create softlinks for CUDA'
|
|
run: |
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/stubs/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so
|
|
|
|
- name: 'LIBSO=1 GPU=0 CUDNN=0 OPENCV=0'
|
|
run: |
|
|
make LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 DEBUG=1'
|
|
run: |
|
|
make LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 DEBUG=1 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 AVX=1'
|
|
run: |
|
|
make LIBSO=1 GPU=0 CUDNN=0 OPENCV=0 AVX=1 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=0 CUDNN=0 OPENCV=1'
|
|
run: |
|
|
make LIBSO=1 GPU=0 CUDNN=0 OPENCV=1 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=1 CUDNN=1 OPENCV=1'
|
|
run: |
|
|
export PATH=/usr/local/cuda/bin:$PATH
|
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH
|
|
make LIBSO=1 GPU=1 CUDNN=1 OPENCV=1 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=1 CUDNN=1 OPENCV=1 CUDNN_HALF=1'
|
|
run: |
|
|
export PATH=/usr/local/cuda/bin:$PATH
|
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH
|
|
make LIBSO=1 GPU=1 CUDNN=1 OPENCV=1 CUDNN_HALF=1 -j 8
|
|
make clean
|
|
- name: 'LIBSO=1 GPU=1 CUDNN=1 OPENCV=1 CUDNN_HALF=1 USE_CPP=1'
|
|
run: |
|
|
export PATH=/usr/local/cuda/bin:$PATH
|
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH
|
|
make LIBSO=1 GPU=1 CUDNN=1 OPENCV=1 CUDNN_HALF=1 USE_CPP=1 -j 8
|
|
make clean
|
|
|
|
|
|
ubuntu-vcpkg-opencv4-cuda:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install yasm nasm
|
|
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.sh
|
|
|
|
- name: 'Create softlinks for CUDA'
|
|
run: |
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/stubs/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
mono $(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
env:
|
|
CUDACXX: "/usr/local/cuda/bin/nvcc"
|
|
CUDA_PATH: "/usr/local/cuda"
|
|
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda"
|
|
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
|
|
run: ./build.ps1 -UseVCPKG -DoNotUpdateVCPKG -EnableOPENCV -EnableCUDA -EnableCUDNN -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu-vcpkg-opencv3-cuda:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install yasm nasm
|
|
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.sh
|
|
|
|
- name: 'Create softlinks for CUDA'
|
|
run: |
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/stubs/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
mono $(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
env:
|
|
CUDACXX: "/usr/local/cuda/bin/nvcc"
|
|
CUDA_PATH: "/usr/local/cuda"
|
|
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda"
|
|
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
|
|
run: ./build.ps1 -UseVCPKG -DoNotUpdateVCPKG -EnableOPENCV -EnableCUDA -EnableCUDNN -ForceOpenCVVersion 3 -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu-vcpkg-opencv2-cuda:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install yasm nasm
|
|
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.sh
|
|
|
|
- name: 'Create softlinks for CUDA'
|
|
run: |
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/stubs/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
mono $(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
env:
|
|
CUDACXX: "/usr/local/cuda/bin/nvcc"
|
|
CUDA_PATH: "/usr/local/cuda"
|
|
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda"
|
|
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
|
|
run: ./build.ps1 -UseVCPKG -DoNotUpdateVCPKG -EnableOPENCV -EnableCUDA -EnableCUDNN -ForceOpenCVVersion 2 -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install libopencv-dev
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
env:
|
|
CUDACXX: "/usr/local/cuda/bin/nvcc"
|
|
CUDA_PATH: "/usr/local/cuda"
|
|
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda"
|
|
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
|
|
run: ./build.ps1 -EnableOPENCV -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu-cuda:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Update apt
|
|
run: sudo apt update
|
|
- name: Install dependencies
|
|
run: sudo apt install libopencv-dev
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.sh
|
|
|
|
- name: 'Create softlinks for CUDA'
|
|
run: |
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/stubs/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so.1
|
|
sudo ln -s /usr/local/cuda-11.2/lib64/stubs/libcuda.so /usr/local/cuda-11.2/lib64/libcuda.so
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
env:
|
|
CUDACXX: "/usr/local/cuda/bin/nvcc"
|
|
CUDA_PATH: "/usr/local/cuda"
|
|
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda"
|
|
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/lib64/stubs:$LD_LIBRARY_PATH"
|
|
run: ./build.ps1 -EnableOPENCV -EnableCUDA -EnableCUDNN -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu-no-ocv-cpp:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -ForceCPP -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
ubuntu-setup-sh:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
mono $(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Setup'
|
|
shell: bash
|
|
run: ./scripts/setup.sh -InstallCUDA -BypassDRIVER
|
|
|
|
|
|
osx-vcpkg:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: brew install libomp yasm nasm
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
mono $(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -UseVCPKG -DoNotUpdateVCPKG -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
osx:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: brew install opencv libomp
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -EnableOPENCV -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
osx-no-ocv-no-omp-cpp:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -ForceCPP -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
win-vcpkg:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
$(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -UseVCPKG -DoNotUpdateVCPKG -EnableOPENCV -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
win-intlibs:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
win-setup-ps1:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: 'Setup vcpkg and NuGet artifacts backend'
|
|
shell: bash
|
|
run: >
|
|
git clone https://github.com/microsoft/vcpkg ;
|
|
./vcpkg/bootstrap-vcpkg.sh ;
|
|
$(./vcpkg/vcpkg fetch nuget | tail -n 1) sources add
|
|
-Name "vcpkgbinarycache"
|
|
-Source http://93.49.111.10:5555/v3/index.json
|
|
|
|
- name: 'Setup'
|
|
shell: pwsh
|
|
run: ./scripts/setup.ps1 -InstallCUDA
|
|
|
|
|
|
win-intlibs-cpp:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -ForceCPP -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
win-csharp:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
shell: pwsh
|
|
run: ./build.ps1 -EnableCSharpWrapper -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
win-intlibs-cuda:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: 'Install CUDA'
|
|
run: ./scripts/deploy-cuda.ps1
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build'
|
|
env:
|
|
CUDA_PATH: "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3"
|
|
CUDA_TOOLKIT_ROOT_DIR: "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3"
|
|
CUDACXX: "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\bin\\nvcc.exe"
|
|
shell: pwsh
|
|
run: ./build.ps1 -EnableCUDA -DisableInteractive -DoNotUpdateDARKNET
|
|
|
|
|
|
mingw:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: lukka/get-cmake@latest
|
|
|
|
- name: 'Build with CMake'
|
|
uses: lukka/run-cmake@v3
|
|
with:
|
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
|
useVcpkgToolchainFile: true
|
|
buildDirectory: '${{ runner.workspace }}/buildDirectory'
|
|
cmakeAppendedArgs: "-G\"MinGW Makefiles\" -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=OFF -DENABLE_CUDNN=OFF -DENABLE_OPENCV=OFF"
|
|
cmakeBuildType: 'Release'
|
|
buildWithCMakeArgs: '--config Release --target install'
|