Skip to content

Commit d6b0e01

Browse files
authored
Merge branch 'main' into feature/direct-json-writer
2 parents f1bb603 + 4dabad5 commit d6b0e01

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ jobs:
106106
set -e
107107
rustup component add llvm-tools
108108
python -m venv .pgo-venv
109-
.pgo-venv/bin/pip install maturin ZODB BTrees
110-
RUSTFLAGS="-Cprofile-generate=/tmp/pgo-data" .pgo-venv/bin/maturin develop --release
109+
source .pgo-venv/bin/activate
110+
pip install maturin ZODB BTrees
111+
RUSTFLAGS="-Cprofile-generate=/tmp/pgo-data" maturin develop --release
111112
gunzip -k benchmarks/bench_data/Data.fs.gz
112-
.pgo-venv/bin/python benchmarks/bench.py filestorage benchmarks/bench_data/Data.fs
113-
.pgo-venv/bin/python benchmarks/bench.py synthetic --iterations 2000
113+
python benchmarks/bench.py filestorage benchmarks/bench_data/Data.fs
114+
python benchmarks/bench.py synthetic --iterations 2000
114115
LLVM_PROFDATA=$(find "$(rustc --print sysroot)" -name llvm-profdata | head -1)
115116
if [ -n "$LLVM_PROFDATA" ] && ls /tmp/pgo-data/*.profraw 1>/dev/null 2>&1; then
116117
"$LLVM_PROFDATA" merge -o /tmp/pgo-data/merged.profdata /tmp/pgo-data/*.profraw
@@ -144,13 +145,14 @@ jobs:
144145
set -e
145146
rustup component add llvm-tools
146147
python -m venv .pgo-venv
147-
.pgo-venv/Scripts/pip install maturin ZODB BTrees
148-
PGO_DIR="$(pwd)/pgo-data"
148+
source .pgo-venv/Scripts/activate
149+
pip install maturin ZODB BTrees
150+
PGO_DIR="$(cygpath -m "$(pwd)")/pgo-data"
149151
mkdir -p "$PGO_DIR"
150-
RUSTFLAGS="-Cprofile-generate=$PGO_DIR" .pgo-venv/Scripts/maturin develop --release
152+
RUSTFLAGS="-Cprofile-generate=$PGO_DIR" maturin develop --release
151153
gunzip -k benchmarks/bench_data/Data.fs.gz
152-
.pgo-venv/Scripts/python benchmarks/bench.py filestorage benchmarks/bench_data/Data.fs
153-
.pgo-venv/Scripts/python benchmarks/bench.py synthetic --iterations 2000
154+
python benchmarks/bench.py filestorage benchmarks/bench_data/Data.fs
155+
python benchmarks/bench.py synthetic --iterations 2000
154156
LLVM_PROFDATA=$(find "$(rustc --print sysroot)" \( -name llvm-profdata -o -name llvm-profdata.exe \) | head -1)
155157
if [ -n "$LLVM_PROFDATA" ] && ls "$PGO_DIR"/*.profraw 1>/dev/null 2>&1; then
156158
"$LLVM_PROFDATA" merge -o "$PGO_DIR/merged.profdata" "$PGO_DIR"/*.profraw

0 commit comments

Comments
 (0)