mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
expand github action ci coverage, leave only cygwin on appveyor. Next step will be cuda on github actions
This commit is contained in:
104
.github/workflows/ccpp.yml
vendored
104
.github/workflows/ccpp.yml
vendored
@ -104,6 +104,26 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/uselib*
|
path: ${{ github.workspace }}/uselib*
|
||||||
|
|
||||||
|
|
||||||
|
linux-build-no-opencv-cpp-mode:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Install latest CMake.
|
||||||
|
- uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
|
- name: 'Build with CMake and Ninja'
|
||||||
|
uses: lukka/run-cmake@v2
|
||||||
|
with:
|
||||||
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
||||||
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
||||||
|
useVcpkgToolchainFile: true
|
||||||
|
buildDirectory: '${{ runner.workspace }}/buildDirectory'
|
||||||
|
cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=Release -DBUILD_AS_CPP:BOOL=TRUE"
|
||||||
|
cmakeBuildType: 'Release'
|
||||||
|
buildWithCMakeArgs: '--target install'
|
||||||
|
|
||||||
|
|
||||||
macos-build-vcpkg:
|
macos-build-vcpkg:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
@ -201,6 +221,26 @@ jobs:
|
|||||||
path: ${{ github.workspace }}/uselib*
|
path: ${{ github.workspace }}/uselib*
|
||||||
|
|
||||||
|
|
||||||
|
macos-build-no-opencv-no-omp-cpp-mode:
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Install latest CMake.
|
||||||
|
- uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
|
- name: 'Build with CMake and Ninja'
|
||||||
|
uses: lukka/run-cmake@v2
|
||||||
|
with:
|
||||||
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
||||||
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
||||||
|
useVcpkgToolchainFile: true
|
||||||
|
buildDirectory: '${{ runner.workspace }}/buildDirectory'
|
||||||
|
cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=Release -DBUILD_AS_CPP:BOOL=TRUE"
|
||||||
|
cmakeBuildType: 'Release'
|
||||||
|
buildWithCMakeArgs: '--target install'
|
||||||
|
|
||||||
|
|
||||||
windows-build-vcpkg:
|
windows-build-vcpkg:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
@ -247,7 +287,71 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: darknet-vcpkg-${{ runner.os }}
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
path: ${{ github.workspace }}/*dark*
|
path: ${{ github.workspace }}/*dark*
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: ${{ runner.workspace }}/buildDirectory/*.dll
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: darknet-vcpkg-${{ runner.os }}
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
path: ${{ github.workspace }}/uselib*
|
path: ${{ github.workspace }}/uselib*
|
||||||
|
|
||||||
|
|
||||||
|
windows-build-integrated-libs:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Install latest CMake.
|
||||||
|
- uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
|
- name: 'Build with CMake and Ninja'
|
||||||
|
uses: lukka/run-cmake@v2
|
||||||
|
with:
|
||||||
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
||||||
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
||||||
|
useVcpkgToolchainFile: true
|
||||||
|
buildDirectory: '${{ runner.workspace }}/buildDirectory'
|
||||||
|
cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
cmakeBuildType: 'Release'
|
||||||
|
buildWithCMakeArgs: '--target install'
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: cfg
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: data
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: ${{ github.workspace }}/*dark*
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: ${{ github.workspace }}/3rdparty/pthreads/bin/*.dll
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: darknet-vcpkg-${{ runner.os }}
|
||||||
|
path: ${{ github.workspace }}/uselib*
|
||||||
|
|
||||||
|
windows-build-integrated-libs-cpp-mode:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Install latest CMake.
|
||||||
|
- uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
|
- name: 'Build with CMake and Ninja'
|
||||||
|
uses: lukka/run-cmake@v2
|
||||||
|
with:
|
||||||
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
||||||
|
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
|
||||||
|
useVcpkgToolchainFile: true
|
||||||
|
buildDirectory: '${{ runner.workspace }}/buildDirectory'
|
||||||
|
cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=Release -DBUILD_AS_CPP:BOOL=TRUE"
|
||||||
|
cmakeBuildType: 'Release'
|
||||||
|
buildWithCMakeArgs: '--target install'
|
||||||
|
62
appveyor.yml
62
appveyor.yml
@ -10,20 +10,20 @@ environment:
|
|||||||
COMPILER: cygwin
|
COMPILER: cygwin
|
||||||
CYGWIN_NOWINPATH: yes
|
CYGWIN_NOWINPATH: yes
|
||||||
CYGSH: C:\cygwin64\bin\bash -c
|
CYGSH: C:\cygwin64\bin\bash -c
|
||||||
- platform: Win64
|
#- platform: Win64
|
||||||
USE_CUDA: yes
|
# USE_CUDA: yes
|
||||||
INSTALL_CUDA_VERSION: 10.0
|
# INSTALL_CUDA_VERSION: 10.0
|
||||||
COMPILER: vs
|
# COMPILER: vs
|
||||||
configuration: Release
|
# configuration: Release
|
||||||
VCPKG_ROOT: C:\Tools\vcpkg
|
# VCPKG_ROOT: C:\Tools\vcpkg
|
||||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
# VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
- platform: Win64
|
#- platform: Win64
|
||||||
USE_CUDA: yes
|
# USE_CUDA: yes
|
||||||
INSTALL_CUDA_VERSION: 10.1
|
# INSTALL_CUDA_VERSION: 10.1
|
||||||
COMPILER: vs
|
# COMPILER: vs
|
||||||
configuration: Release
|
# configuration: Release
|
||||||
VCPKG_ROOT: C:\Tools\vcpkg
|
# VCPKG_ROOT: C:\Tools\vcpkg
|
||||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
# VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
#- platform: Win64
|
#- platform: Win64
|
||||||
# USE_CUDA: yes
|
# USE_CUDA: yes
|
||||||
# INSTALL_CUDA_VERSION: 10.2
|
# INSTALL_CUDA_VERSION: 10.2
|
||||||
@ -31,23 +31,23 @@ environment:
|
|||||||
# configuration: Release
|
# configuration: Release
|
||||||
# VCPKG_ROOT: C:\Tools\vcpkg
|
# VCPKG_ROOT: C:\Tools\vcpkg
|
||||||
# VCPKG_DEFAULT_TRIPLET: x64-windows
|
# VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
- platform: Win64
|
#- platform: Win64
|
||||||
USE_CUDA: no
|
# USE_CUDA: no
|
||||||
COMPILER: vs
|
# COMPILER: vs
|
||||||
configuration: Release
|
# configuration: Release
|
||||||
VCPKG_ROOT: C:\Tools\vcpkg
|
# VCPKG_ROOT: C:\Tools\vcpkg
|
||||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
# VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
- platform: Win64
|
#- platform: Win64
|
||||||
USE_CUDA: no
|
# USE_CUDA: no
|
||||||
COMPILER: vs
|
# COMPILER: vs
|
||||||
configuration: Release
|
# configuration: Release
|
||||||
USE_INTEGRATED_LIBS: yes
|
# USE_INTEGRATED_LIBS: yes
|
||||||
- platform: Win64
|
#- platform: Win64
|
||||||
USE_CUDA: no
|
# USE_CUDA: no
|
||||||
COMPILER: vs
|
# COMPILER: vs
|
||||||
configuration: Release
|
# configuration: Release
|
||||||
USE_INTEGRATED_LIBS: yes
|
# USE_INTEGRATED_LIBS: yes
|
||||||
FORCE_CPP: yes
|
# FORCE_CPP: yes
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [%COMPILER%]==[vs] cinst cmake ninja
|
- if [%COMPILER%]==[vs] cinst cmake ninja
|
||||||
|
Reference in New Issue
Block a user