46 Commits

Author SHA1 Message Date
Azat Khuzhin
63ef005a26 ci: drop processing "ci skip" message in commit in favor of official skip
Since [1] github actions official support skipping workflows based on
the message.

  [1]: https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
2022-07-10 15:47:00 +03:00
Azat Khuzhin
fc24a2990d ci: add ability skip specific workflow
Public CI workers has pretty high load, and sometimes you need to test
only specific workflow, i.e. windows.

So let's add ability to limit which workflow should be run.
2022-07-10 15:13:46 +03:00
Azat Khuzhin
54078b30cb ci: use ubuntu 22.04 with OpenSSl 3.0 instead of building OpenSSL from sources 2022-07-10 13:11:51 +03:00
Azat Khuzhin
fb5490066d ci: set LD_LIBRARY_PATH for openssl 3.0 build
Fixes:

    /home/runner/work/libevent/libevent/build/test/.libs/regress: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
2022-07-10 12:48:04 +03:00
William Marlow
a29570a1e2 Attempt to add OpenSSL 3 to the Linux build matrix
v2: fix echo messages
v3: fix autotools build (wrong path to pkg config)
2022-07-10 10:07:25 +03:00
Azat Khuzhin
acb7ef9819 ci/macos: remove separate openssl 1.1 from build matrix
@ploxiln:

    On current homebrew, openssl@1.1 is the only openssl:

    [pierce@plo-mbp15 libevent]$ brew --prefix openssl
    /usr/local/opt/openssl@1.1
    [pierce@plo-mbp15 libevent]$ brew info openssl
    openssl@1.1: stable 1.1.1g (bottled) [keg-only]
    Cryptography and SSL/TLS Toolkit

@fanquake

    Indeed. OpenSSL 1.0 was removed from homebew in Homebrew/homebrew-core#46876. Related discussion also in Homebrew/homebrew-core#46454.
2022-07-09 21:17:06 +03:00
Azat Khuzhin
a9441ed646 ci: fix cmake build w/o OPENSSL_ROOT_DIR
cmake build rules does not have detection of OPENSSL_ROOT_DIR via brew,
so we cannot run such builds on CI.

Always set OPENSSL_ROOT_DIR for cmake.
2022-07-09 20:15:17 +03:00
Azat Khuzhin
4954b27bc0 ci: remove separate build for BREW_AUTODETECT_OPENSSL (use it by default) 2022-07-09 20:15:17 +03:00
Azat Khuzhin
1915b564f3 Run builds with -Werror on CI for linux 2022-07-09 17:17:04 +03:00
Igor Klemenski
21e2862689 Fix mingw pipeline (by using correct PATH to msys64)
I found the correct path by looking at the _Disable Key Refresh_ step in
_mingw::autotools::set up msys2_ task
(https://github.com/rectified95/libevent/runs/5858227589?check_suite_focus=true)

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Content -path **D:\a\_temp\msys64**\etc\post-install\07-pacman-key.post -Raw) ...
2022-04-07 08:32:09 +03:00
Igor Klemenski
097ff9a433 Fix windows pipeline (by updating vcpkg version to latest)
The Windows CI is failing at the prepare vcpkg step while installing zlib
Changing the vcpkg commit hash to point to latest release
https://github.com/microsoft/vcpkg/releases/tag/2022.03.10 as opposed to
sometime in 2019 to see if that fixes it.
2022-04-07 08:27:56 +03:00
Azat Khuzhin
e1ecc6fa0d Switch coverage to ubuntu 18.04
It seems that there is no 16.04 image anymore, since github actions was
not able to find it for 24 hours [1].

  [1]: https://github.com/libevent/libevent/actions/runs/1522612189
2021-12-02 10:27:16 +03:00
Azat Khuzhin
3b9c7dd6d6 ci: remove deprecated windows-2016 image
Refs: https://github.blog/changelog/2021-10-19-github-actions-the-windows-2016-runner-image-will-be-removed-from-github-hosted-runners-on-march-15-2022
2021-11-30 22:37:32 +03:00
Azat Khuzhin
048907a501 github/workflows/macos.yml: fix test step name 2021-09-19 16:00:35 +03:00
Azat Khuzhin
12e6d6ebaf github/workflows/mingw: use ctest --output-on-failure
Otherwise it is hard to understand the problem [1].

  [1]: https://github.com/azat/libevent/runs/3643912284
2021-09-19 12:33:59 +03:00
Azat Khuzhin
39dcd52b94 ci: split build and test into separate jobs 2021-09-19 09:21:43 +03:00
Pierce Lopez
bceab045ea ci: fix macOS mbedtls version/search
mbedtls just updated to version 3.0, install mbedtls@2 variant,
which needs more help being located since it's no longer the
default and no longer linked into the typical /usr/local dirs

also gitignore mbedtls sample program binaries
2021-09-17 10:33:37 -04:00
fanquake
196a36afc8
ci: install pkg-config in mingw-w64 CI 2021-07-09 12:58:38 +08:00
Azat Khuzhin
aba6548c53 Switch to lukka/run-vcpkg@v7 and update vcpkgGitCommitId
Let's see if it uses set-env or not [1]:

    Run lukka/run-vcpkg@v2
    Restore vcpkg and its artifacts from cache
    Set output env vars
      Error: Unable to process command '::set-env name=RUNVCPKG_VCPKG_ROOT::D:\a\libevent\vcpkg' successfully.
      Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

  [1]: https://github.com/libevent/libevent/runs/2172680596?check_suite_focus=true#step:4:24

And this one [2]:

    error: could not open file /var/cache/pacman/pkg/libzstd-1.5.0-1-x86_64.pkg.tar.zst: Child process exited with status 127
    error: could not open file /var/cache/pacman/pkg/zstd-1.5.0-1-x86_64.pkg.tar.zst: Child process exited with status 127
    error: could not open file /var/cache/pacman/pkg/pacman-5.2.2-23-x86_64.pkg.tar.zst: Child process exited with status 127
    error: failed to commit transaction (cannot open package file)

  [2]: https://github.com/libevent/libevent/pull/1168/checks?check_run_id=2706159518#step:4:367
2021-05-31 10:36:08 +03:00
Azat Khuzhin
8e5e7bb8a8 ci: fix upload-artifacts for linux dist build
Fixes [1]:

    Run actions/upload-artifact@v1
    Error: Path does not exist /home/runner/work/libevent/libevent/build
    Error: Exit code 1 returned from process: file name '/home/runner/runners/2.277.1/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.

  [1]: https://github.com/libevent/libevent/runs/2172680722?check_suite_focus=true
2021-03-23 09:44:49 +03:00
Azat Khuzhin
29b1404ba2 Add autodetection of openssl via brew into build matrix 2020-11-02 01:14:58 +03:00
Azat Khuzhin
a7d3cd403f Add build w/o any SSL support (i.e. w/o openssl and mbedtls)
This pure build w/o SSL has been removed in mbedtls PR - #1028
2020-09-14 21:30:02 +03:00
yuangongji
cf2ac1af08 fix CI:Update cache version and replace setup-msys2 2020-08-05 15:47:03 +08:00
yuangongji
92b9109ef8 fix CI: Install vcpkg through the source code to temporarily solve the windows CI problem 2020-08-05 12:00:05 +08:00
Azat Khuzhin
62c152d9a7 Remove reduntant variables in workflows with deploy
Fixes: bfbbc882 ("Change user.name/user.email to robot for deploy via github actions")
2020-07-28 11:04:16 +03:00
Azat Khuzhin
bfbbc88296 Change user.name/user.email to robot for deploy via github actions 2020-07-28 11:02:59 +03:00
Azat Khuzhin
50dac7aded ci/doxygen: install missing libmbedtls-dev 2020-07-23 02:01:18 +03:00
Azat Khuzhin
8ec4682623 ci/coverage: add missing libmbedtls-dev 2020-07-23 01:09:11 +03:00
okhowang(王沛文)
dad699cc04 add mbedtls to CI 2020-07-22 22:53:23 +03:00
Azat Khuzhin
e9a6b12769 ci/linux: create dist artifact only if dist archive was built
Fixes: 512c88ce ("ci/linux: add dist check")
2020-07-05 14:53:08 +03:00
Azat Khuzhin
9da1743b41 ci: set build type to debug with sanitizers 2020-07-05 11:21:04 +03:00
Azat Khuzhin
1cea01d6d5 Add abi-check report into artifacts 2020-06-28 17:10:03 +03:00
Azat Khuzhin
3fec471c32 Add LSAN suppressions (for OpenSSL temporary quirk) 2020-06-25 22:57:40 +03:00
Azat Khuzhin
b90b19250a Add TSAN suppressions 2020-06-25 22:57:40 +03:00
Azat Khuzhin
0db4e1c46c ci: run tests under sanitizers
Added:
- ASAN
- TSAN
- UBSAN

And disable some tests that are know to have leaks.
2020-06-25 22:51:06 +03:00
yuangongji
c753ae876e CI: catch failures and retry 2020-05-28 20:10:47 +08:00
Azat Khuzhin
15917b420d Include details of the ABI compatibility report 2020-05-06 03:03:27 +03:00
Azat Khuzhin
889ad6d698 Add ABI compatibility report deploy
Closes: #887
2020-05-06 02:46:28 +03:00
Azat Khuzhin
512c88ceb4 ci/linux: add dist check 2020-05-05 16:25:44 +03:00
Azat Khuzhin
c19ebffb21 ci: change cache key for windows/mingw
Should fix the following current failures:
- 2020-05-04T22:32:02.9490248Z C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 3. [D:\a\libevent\libevent\build\regress.vcxproj]
- cmake : /usr/bin/sh: /C/hostedtoolcache/windows/Python/3.7.6/x64/python.exe: No such file or directory

P.S. I guess python has another path, but on my fork it is the same and
it passes.
2020-05-05 15:01:25 +03:00
Azat Khuzhin
072dfacfeb Do not run CI if message contains "ci skip"
https://github.com/marketplace/actions/skip-based-on-commit-message
2020-05-05 13:57:15 +03:00
yuangongji
6dea151494 github workflows: ignore previous cache
modify the cache key to ignore previous cache
for the changes of configure.ac/CMakeLists.txt
to take effect.
2020-03-22 22:34:41 +08:00
yuangongji
93eb1b70e7 github workflows: test for mingw via cmake 2020-03-22 22:23:19 +08:00
yuangongji
a3cb3119c7 github workflow: fix configure error on mingw-w64 2020-03-17 21:43:39 +03:00
yuangongji
84bb2c18e4 github actions: test and coverage 2020-01-27 01:50:13 +03:00
yuangongji
d151968fe7 github actions: doxygen 2020-01-27 01:50:13 +03:00