Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Oct 20, 2024
1 parent 9fab676 commit ee417df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
5 changes: 2 additions & 3 deletions projects/data-encoding/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder-rust
RUN apt-get update && \
apt-get install -y make autoconf automake libtool curl cmake python \
llvm-dev libclang-dev clang
apt-get install -y make autoconf automake libtool curl cmake python

RUN git clone https://github.com/ia0/data-encoding
WORKDIR $SRC/data-encoding

COPY build.sh patch.diff $SRC/
COPY build.sh $SRC/
13 changes: 3 additions & 10 deletions projects/data-encoding/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@
#
################################################################################

# Apply diff for lib/fuzz/Cargo.toml to include v3-preview feature for fuzzing
git apply $SRC/patch.diff

# Build the fuzzers and project source code
cd lib
cargo fuzz build -O
cargo fuzz build --features=data-encoding/v3-preview

# Copy built fuzzer binaries to $OUT
cp $SRC/data-encoding/target/x86_64-unknown-linux-gnu/release/encoder $OUT
cp $SRC/data-encoding/target/x86_64-unknown-linux-gnu/release/encode_write $OUT
cp $SRC/data-encoding/target/x86_64-unknown-linux-gnu/release/round_trip $OUT
cp $SRC/data-encoding/target/x86_64-unknown-linux-gnu/release/v3-preview $OUT
find $SRC/data-encoding/target/x86_64-unknown-linux-gnu/release -maxdepth 1 \
-type f -perm -u=x -exec cp {} $OUT \;
11 changes: 0 additions & 11 deletions projects/data-encoding/patch.diff

This file was deleted.

0 comments on commit ee417df

Please sign in to comment.