Skip to content

Commit

Permalink
use iconv to go from ansi to utf
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Sep 10, 2024
1 parent 388e18f commit 8bacb16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
if [ -f ./cache/benchmark-main.json ]; then
pnpm run bench --run --outputJson benchmark.json --compare ./cache/benchmark-main.json > benchmark.txt
else
pnpm run bench --run --outputJson benchmark.json > benchmark.txt
pnpm run bench --run --outputJson benchmark.json > benchmark-tmp.txt
fi
iconv -f "windows-1252" -t "UTF-8" benchmark-tmp.txt -o benchmark.txt
echo 'BENCHMARK_RESULT<<EOF' >> $GITHUB_OUTPUT
sed -i -e '$a\' benchmark.txt
sed -i -e 's/\x1b\[[0-9;]*m//g' benchmark.txt
cat benchmark.txt >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
cat benchmark.txt >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 8bacb16

Please sign in to comment.