Commit Graph

63 Commits

Author SHA1 Message Date
Stefano Sinigardi d17ec15a06
update cuda to 12.6 (#8922)
* update cuda to 12.6
* remove cuda from opencv2 and opencv3
2024-10-10 09:59:36 +02:00
Stefano Sinigardi ffdd5e41a8
build.ps1 is arm64 compatible (#8900) 2024-05-03 15:35:17 +02:00
Stefano Sinigardi 9a9fcdb111
minor code cleaning (#8844)
* minor cleanup
* vcpkg force internal tools to reduce cache misses
* move getopt to 3rdparty
* add a very small test on a couple of platform in CI
2023-09-27 02:04:56 +02:00
Stefano Sinigardi 39b854d0ac
lower disk space usage in CI to remove spurious errors (#8843)
Co-authored-by: vsaw <hello@vsaw.net>
2023-09-21 08:06:26 +02:00
Stefano Sinigardi d30c13c38f
cpack update (#8842)
* enable building installers in CI

* [build.ps1] improve installer handling

* do not install directly when building installer
2023-09-11 21:09:53 +02:00
Stefano Sinigardi 291cdb9ccd
enable packaging (#8837) 2023-08-31 11:32:51 +02:00
Stefano Sinigardi f3a50b9aee
add kmeansiou to build targets (#8831) 2023-08-25 22:11:50 +02:00
Stefano Sinigardi 9bf13a09d8
update build script to workaround vcpkg integrated in vs (#8818) 2023-08-02 08:50:59 +02:00
Stefano Sinigardi ed59050950
fix errors in CI (#8753)
* update build scripts

* add pkg-config on osx

* re-enable building with older opencv versions
2023-03-03 18:24:13 +01:00
Stefano Sinigardi 96f08de683
restore Windows PowerShell compatibility (#8607)
* fix IsWindowsPowershell visibility

* add missing closing braces

* use proper flag

* non-interactive deploy of cuda

* set default host triplet

* add a CI test for legacy Windows PowerShell

* add powershell as shell name explicitly, otherwise github actions are already defaulting to pwsh
2022-08-16 20:20:48 +02:00
Stefano Sinigardi 1ee19442ee
update to cuda 11.7, update pthreads4w cmake module, upgrade ps1 scripts (#8586) 2022-07-01 16:46:41 +02:00
Stefano Sinigardi 8a0bf84c19
various fixes (#8398)
* re-enable opencv on osx

* enable all and all-major architecture flags for cuda

* update build script

* use proper path separator

* [windows-cuda] bump to 11.6.1

* [windows-cuda] some fixes from CI runs

* make deploy-cuda.ps1 work also when called from outside its folder

* bump to cuda 11.6 also on linux

* deploy custom cmake modules if requested by the user

* fix cmake module source path

* use proper clause for dll copy
2022-03-07 01:41:08 +03:00
Stefano Sinigardi 57910b1fa9
[CI] build dependencies in release-only mode (#8304)
* enable release-only triplet on windows

* add debug tmate

* use release-only triplets also for linux and osx
2021-12-22 12:20:27 +01:00
Stefano Sinigardi 967b72db11
improve compatibility with vs2022 (#8295) 2021-12-17 15:05:24 +01:00
Stefano Sinigardi 4b35dbbf9a
update to cuda 11.5 (#8174) 2021-11-12 04:58:00 +01:00
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