2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-19 16:32:12 +00:00
Files
mysql/.github/workflows/fuzz.yml
Anarthal (Rubén Pérez) 0e5f42aea9 Migrated Linux CIs to use containers from a separate repo (#491)
New repository: https://github.com/anarthal/cpp-ci-containers
Rationale: adding/modifying containers is easier. Containers can be
shared between libraries.
2025-10-06 16:51:39 +02:00

62 lines
1.5 KiB
YAML

#
# Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
name: fuzz
on:
push:
branches: [develop, master]
tags: ['*']
pull_request:
workflow_dispatch:
schedule:
- cron: "25 00 * * *"
jobs:
fuzz:
runs-on: ubuntu-latest
container:
image: ghcr.io/anarthal/cpp-ci-containers/build-clang18:1
volumes:
- /var/run/mysqld:/var/run/mysqld
services:
mysql:
image: ghcr.io/anarthal/cpp-ci-containers/mysql-8_4_1:1
ports:
- 3306:3306
volumes:
- /var/run/mysqld:/var/run/mysqld
steps:
- name: Fetch code
uses: actions/checkout@v4
- name: Restore corpus
uses: actions/cache@v4
with:
path: /tmp/corpus.tar.gz
key: corpus-${{ github.run_id }}
restore-keys: corpus-
# Note: this will take care of using the corpus and updating it
- name: Build and run the fuzzer
run: |
python tools/ci/main.py \
--source-dir=$(pwd) \
fuzz \
--server-host=mysql
- name: Archive any crashes as an artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: crashes
path: |
~/boost-root/crash-*
~/boost-root/leak-*
~/boost-root/timeout-*
if-no-files-found: ignore