Skip to content

Commit

Permalink
Add distfiles caching to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTheCoolingFan committed Nov 21, 2024
1 parent 65b0ea3 commit 0f93def
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ jobs:
run: |
./.github/workflow-utils/add-repo.sh ./
- name: Cache distfiles
uses: actions/cache@v4
with:
key: distfiles-cache
path: |
/var/cache/distfiles
- name: bash var shenanigans
run: |
echo "PACKAGE_FILENAME=$(basename ${PACKAGE_FILE})" >> $GITHUB_ENV
Expand All @@ -74,3 +81,7 @@ jobs:
- name: Try to build and install (merge) the package
run: |
emerge --autounmask y --autounmask-continue y "=games-misc/${PACKAGE_FILENAME#.ebuild}"
- name: Clean distfiles cache
run: |
eclean-dist --quiet
7 changes: 7 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
shell: bash

steps:
- name: Cache distfiles
uses: actions/cache@v4
with:
key: distfiles-cache
path: |
/var/cache/distfiles
- name: Install pycargoebuild
run: emerge app-portage/pycargoebuild

Expand Down

0 comments on commit 0f93def

Please sign in to comment.