Commit Graph

48 Commits

Author SHA1 Message Date
Stefano Sinigardi 8bbdb6b77c
[CI] test vcpkg nightly builds (#7826) 2021-06-24 10:23:45 +02:00
Stefano Sinigardi 6c171a4cea
add automatic rebase github action (#7809)
* add automatic rebase action

* do not upload artifacts from PRs

* use proper symbol in build.ps1

* fix lib naming

* fix folder for dll artifacts
2021-06-18 01:15:55 +03:00
Stefano Sinigardi 7ff80b1a47
add missing asm tools in CI, run it every night (#7790)
* add missing asm tools

* run CI every night

* add csharp tool
2021-06-11 03:35:26 +03:00
Stefano Sinigardi 8c85eb7784
[build.ps1/setup.sh] do not export vcpkg_root anymore, add setup scripts to CI (#7751)
* [build.ps1] do not export vcpkg_root anymore

* [README.md] add a build step related to Set-ExecutionPolicy on Windows

* use scope currentuser to avoid admin powershell

* simplify even more set-executionpolicy command order

* remove unnecessary decoration to shell commands to improve user experience with copy button

* write instructions to build using only cmake

* Update README.md

* add target install

* improve setup scripts for future tests

* improve setup.sh script for more tool installations and add command line flags handling

* add CI tests for setup scripts

* use nuget artifact cache to improve CI build times

* disable interactivity for build script when called from setup script, add kitware gpg key in CI

* enable cudnn in setup.sh

* add a workaround for missing nvidia drivers in CI

* setup CUDA env variables

* remove some very slow builds from travis and move them to github actions

* chmod sh scripts

* use deploy-cuda scripts also in PR pipelines

* install asm tools

* restore links missing for CI when using deploy-cuda.sh

* enable cudnn on ubuntu ci pipelines

* pass CUDA env variables

* add missing cuda install for opencv2 and opencv3 ci pipelines

* remove unnecessary steps

Co-authored-by: Alexey <AlexeyAB@users.noreply.github.com>
2021-06-04 15:02:07 +03:00
Stefano Sinigardi 5853e51d60
[build.ps1] fix 64bit build with developer powershell for VS19 (#7740)
* [build.ps1] use x64 also on developer powershell for VS

* improve handling of errors on windows platform

* [build.ps1] bump version

* improve logic handling in uselib_track
2021-05-26 23:58:29 +03:00
Stefano Sinigardi ac8ebca063
[build.ps1] download ninja automatically if missing + other small updates (#7721)
* self download ninja if not found on system and not requested to opt-out

* add a flag to clean up vcpkg local binary cache to force restart from scratch

* really delete if requested
2021-05-19 23:46:20 +03:00
Stefano Sinigardi bdb5fe3e91
fixes for PowerShell ISE (#7715) 2021-05-18 21:47:15 +02:00
Stefano Sinigardi 0024a6a3c8
[build.ps1] improvements (#7711)
* use parentheses to make clear operator order, print out versions

* add english language pack note in README.md

* add even more build info
2021-05-16 22:16:49 +03:00
Stefano Sinigardi 179be4dcb4
add support for Windows PowerShell (#7702)
* add support for powershell v5

* revert opencv enabled on osx

* improve error handling in initial stages

* intercept failures also when updating darknet sources themselves

* press a key before exiting script, to preserve console host window if not running in a shell

* check path length
2021-05-13 23:31:59 +03:00
Stefano Sinigardi 4f794aa152
almost revert last PR (#7634)
* [darknet] split pr/ci pipelines to use fast caching only when accessible

* restore original pipeline names

* restore original ccpp file name

* speed up scripts avoiding -wait flag

* restore fast cache in readonly

* clean up scripts removing references to github packages, which are often down/broken
2021-04-22 18:03:23 +03:00
Stefano Sinigardi 91efb7c7f6
Deploy CUDA 11.3 in CI (#7630)
* [nuget] use personal baget repo

* update cuda to 11.3 on windows

* add error messages during build to not have green badge when failed

* remove cygwin script, is untested now; use deploy-cuda.ps1 script also inside setup.ps1
2021-04-21 19:25:46 +03:00
Stefano Sinigardi ba8f7bf756
improve build process even more (#7610)
* test for shared libs

* improve flag handling

* build so lib in ci

* clone vcpkg if not found

* fix

* improve clang handling

* bump vcpkg.json version

* gemm.c compatible with ARM

* remove unnecessary vcpkg.json field

* do not unnecessarily rebuild vcpkg in the CI build stage

* use alexeyab nuget cache

* enable self-removal of build folder

* add interactivity in build.ps1 if not opt-out

* spellcheck README

* fix another leftover spelling error

* also auto-update darknet if possible

* do not self-update darknet in CI
2021-04-18 16:11:36 +03:00
Stefano Sinigardi e1c02e02da circumvent current upstream bugs 2021-04-15 08:15:27 +02:00
Stefano Sinigardi 56cd9c6e8c enable opencv w/cuda in build.ps1 2021-04-14 17:15:36 +02:00
Stefano Sinigardi 013d5e676d use only build.ps1 2021-04-14 15:06:10 +02:00
Stefano Sinigardi 4a774e0836 find also vcpkg nested inside darknet folder 2021-04-14 13:40:42 +02:00
Stefano Sinigardi 42ecbfa4b4 improve non-windows handling in ps1 script 2021-04-14 13:30:50 +02:00
Stefano Sinigardi fa8d21dee5 use build.ps1 also in CI to better test it 2021-04-14 11:50:54 +02:00
Stefano Sinigardi 94fdfa4590 use ninja whenever possible in build.ps1 2021-02-21 22:59:36 +01:00
Stefano Sinigardi 8f3cd2840e fixes 2021-02-20 17:05:27 +01:00
Stefano Sinigardi b9d296e308 improve manifest mode 2021-02-20 09:28:07 +01:00
Stefano Sinigardi a8013ebcfb do not default on ninja on windows 2021-01-23 09:02:33 +01:00
Stefano Sinigardi 00d578e327
update GitHub actions (#7095)
* update to run-vcpkg@v6

* bump to cmake 3.18

* use newer cuda syntax, fail if cuda enabled but not found

* update win build script

* improve travis with non-cuda-enabled builds

* improve windows building process
2021-01-21 17:36:00 +01:00
Stefano Sinigardi 91e6b8631b add also CUDACXX env variable if missing 2020-05-23 15:46:13 +02:00
Stefano Sinigardi f93a73d140
Do not use vcpkg if not found (#5632)
Fixes #5571

I think I forgot one line :)
2020-05-16 21:01:42 +02:00
Stefano Sinigardi ae0306e851 option to build project using cpp compiler if c not working/available 2019-07-25 09:47:27 +02:00
Stefano Sinigardi 6daa15b84f add a message when package is found 2019-07-18 16:42:34 +02:00
Stefano Sinigardi 2c4c96f50c fix regression 2019-07-12 17:35:38 +02:00
Stefano Sinigardi c0a9c741c3 clean up of README about deprecated option, invert logic of vcpkg flag in build.ps1 for improved clarity 2019-06-13 06:54:54 +02:00
Stefano Sinigardi 920b29f15f fixes for ci and included files 2019-05-14 09:23:02 +02:00
Stefano Sinigardi 5b8929becf fixes for downstream projects using darklib, disable debug build 2019-04-10 18:36:03 +02:00
Stefano Sinigardi e782d96180 [VS] add support for BuildTools (only compilers, partial installation of Visual Studio) 2019-04-10 10:51:54 +02:00
Stefano Sinigardi f6d45f1408 [travis] improve CI configurations, add no-opencv-ones, add opencv4 on
macOS
[build.sh] improve handling of vcpkg
[readme] update instructions for newer visual studio versions
[build.ps1] add VS2015 and VS2019 using vswhere
2019-04-09 09:06:58 +02:00
Stefano Sinigardi 05f027cc72 shared libs are really always default now, static are opt-in only 2019-03-29 09:15:55 +01:00
Stefano Sinigardi da74882fe1 cleanup in preparation to opencv-4 work 2019-03-28 17:54:27 +01:00
Stefano Sinigardi fefc7ef803 improve CUDA setup instructions and templates in scripts 2019-03-19 20:07:02 +01:00
Stefano Sinigardi dfa1735a90
Merge branch 'master' into dev/cenit/stb 2019-03-19 19:39:41 +01:00
none 44c881233a add Visual studio 2017 "Enterprise" edition to edition check. 2019-03-18 09:17:17 +09:00
Stefano Sinigardi a3a836f56a add a switch to force build with local libs 2019-03-13 23:40:44 +01:00
Stefano Sinigardi 5be12ce058 move Stb lib to 3rdparty folder 2019-03-13 23:21:37 +01:00
Stefano Sinigardi 2c8ff8db0d create cmake targets for proper lib export 2019-03-05 18:34:53 +01:00
Stefano Sinigardi fe9eaa9872 improve build script based on user feedback 2019-03-04 10:22:13 +01:00
Stefano Sinigardi 8fd3e7ad25 switch debug/release build order, better futureproof for next cmakeTargets work 2019-03-03 23:35:38 +01:00
Stefano Sinigardi 80c9fa76a4 refresh build scripts 2019-03-03 16:55:15 +01:00
Stefano Sinigardi fd5312f9c8 [build.ps1] fix wrong path, enable builds only if env variable is present 2019-02-22 16:58:50 +01:00
Stefano Sinigardi f950085a45 automatically detect CUDA and use it, without any possible manual intervention 2019-02-20 11:42:53 +01:00
Stefano Sinigardi 9c64f885a8 improve CMake default behaviour to use integrated libs 2019-02-19 23:11:40 +01:00
Stefano Sinigardi cbc1c6d8ca improve CMake alternative, add instructions in README 2019-02-18 09:34:20 +01:00