From 4968a7348bb84a523389a30d1be07c5e071672e8 Mon Sep 17 00:00:00 2001 From: Erik van Oosten Date: Sun, 12 Nov 2023 19:53:37 +0100 Subject: [PATCH] Automatically prune history --- .github/workflows/profile.yml | 4 ++++ .gitignore | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/profile.yml b/.github/workflows/profile.yml index af4f1e581..e721d68b8 100644 --- a/.github/workflows/profile.yml +++ b/.github/workflows/profile.yml @@ -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: | @@ -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 @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index ee9014b9b..3a8991a4a 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,6 @@ project/plugins/project/ # MacOS .DS_Store + +#scala-cli +.scala-build/