mirror of
https://github.com/boostorg/mysql.git
synced 2026-01-19 16:32:12 +00:00
New repository: https://github.com/anarthal/cpp-ci-containers Rationale: adding/modifying containers is easier. Containers can be shared between libraries.
62 lines
1.5 KiB
YAML
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
|