mirror of
https://github.com/boostorg/json.git
synced 2025-05-12 06:01:41 +00:00
fuzzing uses Drone container
This commit is contained in:
parent
128dc383a7
commit
37e3fd03ca
26
.github/workflows/run_fuzzer.yml
vendored
26
.github/workflows/run_fuzzer.yml
vendored
@ -11,6 +11,8 @@ jobs:
|
|||||||
fuzz:
|
fuzz:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: "cppalliance/droneubuntu2204:1"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch head
|
- name: Fetch head
|
||||||
@ -23,11 +25,33 @@ jobs:
|
|||||||
path: head/fuzzing/corpus.tar
|
path: head/fuzzing/corpus.tar
|
||||||
key: corpus-${{ github.run_id }}
|
key: corpus-${{ github.run_id }}
|
||||||
restore-keys: corpus-
|
restore-keys: corpus-
|
||||||
|
- name: Install packages
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
function add_repository {
|
||||||
|
for i in {1..3}; do
|
||||||
|
sudo -E apt-add-repository -y "$1" && return 0 || sleep 10;
|
||||||
|
done
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
curl -sSL --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | \
|
||||||
|
sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
||||||
|
add_repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
|
||||||
|
|
||||||
|
sudo -E apt-get -o Acquire::Retries=3 update
|
||||||
|
sudo -E DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get -o Acquire::Retries=3 -y --no-install-suggests \
|
||||||
|
--no-install-recommends install \
|
||||||
|
clang-18 \
|
||||||
|
libclang-rt-18-dev
|
||||||
- uses: ./head/.github/actions/build
|
- uses: ./head/.github/actions/build
|
||||||
with:
|
with:
|
||||||
buildtype: 'boost'
|
buildtype: 'boost'
|
||||||
path: 'head'
|
path: 'head'
|
||||||
toolset: clang
|
toolset: clang-18
|
||||||
targets: libs/json/fuzzing//run
|
targets: libs/json/fuzzing//run
|
||||||
- name: Pack the corpus
|
- name: Pack the corpus
|
||||||
working-directory: boost-root/libs/json/fuzzing/
|
working-directory: boost-root/libs/json/fuzzing/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user