Skip to content

Commit

Permalink
Merge branch 'main' into ver/box
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Nov 10, 2023
2 parents 54eca6c + 005e25c commit f3b29c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/fuzzers-list.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env bash

set -euo pipefail

## Lists the fuzzers that should be run given a set of changed files.

# Find the nearest fuzzer crate, or nothing.
find_fuzz_dir() {
d=${1%/*}
if [ "$d" = . ]; then
if ! [[ "$d" =~ / ]]; then
return
elif [ -d "$d" ] && [[ "$d" = */fuzz ]]; then
echo "$d"
Expand Down
4 changes: 2 additions & 2 deletions .github/list-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
set -eu

if [ $# -eq 0 ]; then
echo "Usage: $0 <changed-files>"
exit 1
echo '[]'
exit 0
fi

# Find the nearest Cargo.toml (except the root).
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -C debuginfo=0 -A opaque_hidden_inferred_bound"
RUSTFLAGS: "-D warnings -A opaque_hidden_inferred_bound -C debuginfo=0"
RUSTUP_MAX_RETRIES: 10

permissions:
Expand Down
12 changes: 4 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,10 @@ fuzzers:
echo "fuzzers must be run with nightly" >&2
exit 1
fi
for dir in $(find . -type d -name fuzz); do
echo "cd $dir && {{ _cargo }} fuzz build"
(
cd $dir
@{{ _cargo }} fuzz build \
{{ if profile == "release" { "--release" } else { "" } }}
)
for dir in $(find ./linkerd -type d -name fuzz); do
echo "cd $dir && cargo +nightly fuzz build"
( cd $dir ; cargo +nightly fuzz build \
{{ if profile == "release" { "--release" } else { "" } }} )
done
export DOCKER_BUILDX_CACHE_DIR := env_var_or_default('DOCKER_BUILDX_CACHE_DIR', '')
Expand Down

0 comments on commit f3b29c6

Please sign in to comment.