Skip to content

Commit 37e3fd0

Browse files
committed
fuzzing uses Drone container
1 parent 128dc38 commit 37e3fd0

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/run_fuzzer.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
fuzz:
1212

1313
runs-on: ubuntu-latest
14+
container:
15+
image: "cppalliance/droneubuntu2204:1"
1416

1517
steps:
1618
- name: Fetch head
@@ -23,11 +25,33 @@ jobs:
2325
path: head/fuzzing/corpus.tar
2426
key: corpus-${{ github.run_id }}
2527
restore-keys: corpus-
28+
- name: Install packages
29+
shell: bash
30+
run: |
31+
set -e
32+
33+
function add_repository {
34+
for i in {1..3}; do
35+
sudo -E apt-add-repository -y "$1" && return 0 || sleep 10;
36+
done
37+
return 1
38+
}
39+
40+
curl -sSL --retry 5 https://apt.llvm.org/llvm-snapshot.gpg.key | \
41+
sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/llvm-snapshot.gpg
42+
add_repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
43+
44+
sudo -E apt-get -o Acquire::Retries=3 update
45+
sudo -E DEBIAN_FRONTEND=noninteractive \
46+
apt-get -o Acquire::Retries=3 -y --no-install-suggests \
47+
--no-install-recommends install \
48+
clang-18 \
49+
libclang-rt-18-dev
2650
- uses: ./head/.github/actions/build
2751
with:
2852
buildtype: 'boost'
2953
path: 'head'
30-
toolset: clang
54+
toolset: clang-18
3155
targets: libs/json/fuzzing//run
3256
- name: Pack the corpus
3357
working-directory: boost-root/libs/json/fuzzing/

0 commit comments

Comments
 (0)