mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 04:00:06 +00:00
Compare commits
7 Commits
071fdb296b
...
1d967aa8a4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1d967aa8a4 | ||
![]() |
eeabfcfff6 | ||
![]() |
eab1c5eec1 | ||
![]() |
efe44c7399 | ||
![]() |
33fea1d126 | ||
![]() |
f0de677b69 | ||
![]() |
bbcdbb4151 |
28
.github/workflows/docs-and-testcov.yml
vendored
28
.github/workflows/docs-and-testcov.yml
vendored
@ -115,19 +115,23 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-o benchmark-report.zip "$artifact_url"
|
||||
curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \
|
||||
"$artifact_url" -o benchmark-report.zip
|
||||
|
||||
|
||||
|
||||
# Print all files in the current directory
|
||||
echo "Files in the current directory:"
|
||||
ls -al
|
||||
|
||||
# check if the zip file is valid
|
||||
if ! unzip -tq benchmark-report.zip; then
|
||||
echo "benchmark-report.zip is invalid or corrupted!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unzip -q benchmark-report.zip -d benchmark-report
|
||||
|
||||
mkdir -p benchmark-report
|
||||
# print ls -a
|
||||
echo "$( ls -a benchmark-report )"
|
||||
unzip benchmark-report.zip -d benchmark-report
|
||||
# there will be a tar file in the benchmark-report directory
|
||||
# called artifact.tar. unzip it into the benchmark-report
|
||||
tar -xvf benchmark-report/artifact.tar -C benchmark-report
|
||||
# remove the artifact.tar file
|
||||
rm benchmark-report/artifact.tar
|
||||
# add an index.html that points to benchmark-report/report/index.html
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=report/index.html\">" > benchmark-report/index.html
|
||||
|
||||
- name: Copy files to output directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user