mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-28 12:57:41 +03:00
- add Linux jobs with old OpenSSL versions: 1.1.1, 1.1.0, 1.0.2, with tests. (Meaning we test these again after losing them in AppVeyor CI) - add LibreSSL Linux job with tests. - cache most dependency packages built from source. (exception: wolfSSL, which would have added too much complexity due to the multiple versions, and it's fast to build anyway.) - change source tarball sources to GitHub for better stability and performance. - move dependency versions to the env. - set `persist-credentials: false` for checkout steps for security. - pin actions to hash for security. - checkout repo later, right before use. - skip building BoringSSL tests to finish quicker. - set `fail-fast: false` in the BSD build matrix. - cmake: move UWP workaround from GHA to `CMakeLists.txt`, making it available for everyone. - list installed packages in OpenBSD job. - bump BoringSSL, mbedTLS, wolfSSL, OpenSSL. - bump cross-platform-actions to v0.26. - bump docker/build-push-action to v6. - bump actions/upload-artifact to v4. - bump NetBSD to 10.1. - drop `--quiet 2` `apt-get` option to keep useful output. - drop `--no-install-suggests --no-install-recommends` `apt-get` options. They are the defaults with the `ubuntu-24.04` image. - tidy up quotes. Cherry-picked from #1484 Closes #1528
39 lines
1016 B
YAML
39 lines
1016 B
YAML
# Copyright (C) The libssh2 project and its contributors.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
name: CIFuzz
|
|
on: [pull_request]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
Fuzzing:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Build Fuzzers
|
|
id: build
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
with:
|
|
oss-fuzz-project-name: 'libssh2'
|
|
dry-run: false
|
|
language: c
|
|
- name: Run Fuzzers
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
with:
|
|
oss-fuzz-project-name: 'libssh2'
|
|
fuzz-seconds: 600
|
|
dry-run: false
|
|
language: c
|
|
- name: Upload Crash
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
|
|
if: ${{ failure() && steps.build.outcome == 'success' }}
|
|
with:
|
|
name: artifacts
|
|
path: ./out/artifacts
|