mirror of
https://codeberg.org/gigirassy/riptide
synced 2026-08-30 23:27:39 +00:00
@@ -62,51 +62,24 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
SITEMAP_URL='https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml'
|
rm -rf /tmp/riptide-pgo
|
||||||
SITEMAP_URL_2='https://riptide-pgo.blitzw.in/sitemaps2/sitemap.xml'
|
mkdir -p /tmp/riptide-pgo/profiles
|
||||||
|
|
||||||
printf 'Training round 1 with sitemap: <%s>\n' "$SITEMAP_URL"
|
RUSTFLAGS="
|
||||||
|
-C target-feature=+crt-static
|
||||||
|
-C profile-generate=/tmp/riptide-pgo/profiles
|
||||||
|
" cargo build \
|
||||||
|
--release \
|
||||||
|
--target "$LINUX_TARGET"
|
||||||
|
|
||||||
timeout 10m \
|
cp \
|
||||||
/tmp/riptide-pgo/riptide \
|
"target/$LINUX_TARGET/release/riptide" \
|
||||||
--sitemap "$SITEMAP_URL" \
|
/tmp/riptide-pgo/riptide
|
||||||
--output /tmp/pgo-urls.txt \
|
|
||||||
--scheme https \
|
|
||||||
--workers 16 \
|
|
||||||
--timeout-secs 30
|
|
||||||
|
|
||||||
test -s /tmp/pgo-urls.txt
|
chmod +x /tmp/riptide-pgo/riptide
|
||||||
|
|
||||||
echo "Training round 1 input:"
|
file /tmp/riptide-pgo/riptide
|
||||||
wc -l /tmp/pgo-urls.txt
|
|
||||||
|
|
||||||
printf 'Training round 2 with sitemap: <%s>\n' "$SITEMAP_URL_2"
|
|
||||||
|
|
||||||
timeout 10m \
|
|
||||||
/tmp/riptide-pgo/riptide \
|
|
||||||
--sitemap "$SITEMAP_URL_2" \
|
|
||||||
--output /tmp/pgo-urls-2.txt \
|
|
||||||
--scheme https \
|
|
||||||
--workers 16 \
|
|
||||||
--timeout-secs 30
|
|
||||||
|
|
||||||
test -s /tmp/pgo-urls-2.txt
|
|
||||||
|
|
||||||
echo "Training round 2 input:"
|
|
||||||
wc -l /tmp/pgo-urls-2.txt
|
|
||||||
|
|
||||||
echo "Generated profiles:"
|
|
||||||
find /tmp/riptide-pgo/profiles \
|
|
||||||
-name '*.profraw' \
|
|
||||||
-type f \
|
|
||||||
-print
|
|
||||||
|
|
||||||
test -n "$(
|
|
||||||
find /tmp/riptide-pgo/profiles \
|
|
||||||
-name '*.profraw' \
|
|
||||||
-type f \
|
|
||||||
-print -quit
|
|
||||||
)"
|
|
||||||
- name: Verify instrumented binary
|
- name: Verify instrumented binary
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user