Skip to content

Commit

Permalink
ci: Do not cache locally published artifacts
Browse files Browse the repository at this point in the history
These workflows publish artifacts to local maven repository, which are
then cached by GH Actions. Removing them at the end of the workflow
prevents them to pollute the cache.
  • Loading branch information
marcospereira committed Jan 10, 2024
1 parent 7ad2e12 commit 021f934
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ jobs:
- name: Stop Gradle Daemon
if: ${{ always() }}
run: cd test/jte-runtime-cp-test-gradle-convention && ./gradlew --stop

# This prevents local published artifacts from be added to GH Actions cache
- name: Clean local artifacts
if: ${{ always() }}
run: rm -rvf ~/.m2/repository/gg/jte/
5 changes: 5 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
name: failing-test-report
path: test/gradle-test-wrapper/build/reports/tests/test/**/*

# This prevents local published artifacts from be added to GH Actions cache
- name: Clean local artifacts
if: ${{ always() }}
run: rm -rvf ~/.m2/repository/gg/jte/


coverage:
# Do not run coverage for forks since they cannot upload
Expand Down

0 comments on commit 021f934

Please sign in to comment.