-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ [CI] Changed to use cache/restore and cache/save GitHub Actions
Signed-off-by: Alberto Codutti <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
12 changes: 8 additions & 4 deletions
12
...ions/prepareMavenRepoForCache/action.yaml → ...tions/saveBuiltKapuaArtifacts/action.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
name: 'Prepare Maven Repo' | ||
name: 'Save built Kapua Artifacts' | ||
description: | | ||
Prepares ~/.m2/repository/ for caching | ||
Saves the built Kapua artifacts for later usage | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Extract built Kapua artifacts # This splits the built Kapua artifact of this run from the cached repository of external dependencies for caching | ||
if: ${{ steps.cache-maven-kapua-artifacts.outputs.cache-hit != 'true' }} | ||
run: | | ||
mkdir --parents ~/.m2/kapua-repository/org/eclipse/ | ||
mv ~/.m2/repository/org/eclipse/kapua ~/.m2/kapua-repository/org/eclipse/kapua | ||
shell: bash | ||
shell: bash | ||
- name: Save built Kapua artifacts | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: ~/.m2/kapua-repository/org/eclipse/kapua | ||
key: ${{ runner.os }}-maven-${{ github.run_number }}-kapua-artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters