Skip to content

Commit

Permalink
Automatically prune history
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten committed Nov 16, 2023
1 parent fe7e9fc commit 4968a73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
distribution: temurin
java-version: 17
check-latest: true
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
- name: Use CI sbt jvmopts
shell: bash
run: |
Expand Down Expand Up @@ -68,6 +70,7 @@ jobs:
git clean -fdx
git checkout gh-pages
git pull
scala-cli scripts/prune-flame-graph.sc
mkdir -p dev/profile/$REV
mv /tmp/zio.kafka.bench.* dev/profile/$REV
cd dev/profile
Expand All @@ -76,6 +79,7 @@ jobs:
cd ../../
git config --global user.name "zio-kafka CI"
git config --global user.email "ziokafkaci@users.noreply.github.com"
git ls-files --deleted | xargs git rm
git add .
git commit -m "Flame graphs for $REV"
git push
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ project/plugins/project/

# MacOS
.DS_Store

#scala-cli
.scala-build/

0 comments on commit 4968a73

Please sign in to comment.