Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #91 from nervosnetwork/v0.8.7
Browse files Browse the repository at this point in the history
Bump gw-scripts to v0.8.3-rc1
  • Loading branch information
jjyr authored Sep 30, 2021
2 parents 2a6e8b1 + 4c574be commit bc234cf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,24 @@ jobs:
working-directory: ./polyjuice-tests/fuzz
run: make build/test_contracts && ./build/test_contracts

- name: Set MAX_FUZZ_TIME for different branches
run: |
if [[ ${{ github.event_name == 'pull_request' }} ]]; then
echo "MAX_FUZZ_TIME=6" >> $GITHUB_ENV
elif [[ ${{ startsWith(github.base_ref, 'fuzz') }} ]]; then
echo "MAX_FUZZ_TIME=3600" >> $GITHUB_ENV
else
echo "MAX_FUZZ_TIME=60" >> $GITHUB_ENV
fi
- name: Fuzzing Polyjuice Generator 1 hour
working-directory: polyjuice-tests/fuzz
run: |
mkdir -p corpus-cache
ls corpus-cache
make build/polyjuice_generator_fuzzer && \
./build/polyjuice_generator_fuzzer corpus corpus-cache \
-max_total_time=3600 -timeout=120 \
-max_total_time=$MAX_FUZZ_TIME -timeout=120 \
-max_len=25000 -rss_limit_mb=0
# Max data buffer size: 24KB < 25000 bytes

Expand Down
2 changes: 1 addition & 1 deletion c/polyjuice_globals.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef POLYJUICE_GLOBALS_H
#define POLYJUICE_GLOBALS_H

#define POLYJUICE_VERSION "v0.8.6-rc"
#define POLYJUICE_VERSION "v0.8.7"
#define POLYJUICE_SHORT_ADDR_LEN 20
/* 32 + 4 + 20 */
#define SCRIPT_ARGS_LEN 56
Expand Down
2 changes: 1 addition & 1 deletion deps/godwoken-scripts
2 changes: 1 addition & 1 deletion devtools/ci/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
git clone -b master https://github.com/nervosnetwork/godwoken.git $GODWOKEN_DIR
fi
cd $GODWOKEN_DIR
git checkout 5a59b6d3ac83c0b9378b199148db8e934c4ea658
git checkout v0.6.5-rc4
git submodule update --init --recursive

cd tests-deps/godwoken-scripts/c
Expand Down

0 comments on commit bc234cf

Please sign in to comment.