forked from StackStorm/st2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHA: factor out apt cache and install actions
- Loading branch information
1 parent
ee9c74f
commit d8f06b9
Showing
6 changed files
with
42 additions
and
129 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Cache and Install APT Dependencies | ||
description: | ||
Light wrapper around the actions/cache action and our script | ||
to maintain the input vars in only one place for all workflows. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache APT Dependencies | ||
id: cache-apt-deps | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/apt_cache | ||
key: ${{ runner.os }}-v8-apt-${{ hashFiles('scripts/github/apt-packages.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-v8-apt- | ||
- name: Install APT Depedencies | ||
env: | ||
CACHE_HIT: ${{steps.cache-apt-deps.outputs.cache-hit}} | ||
run: | | ||
# install dev dependencies for Python YAML and LDAP packages | ||
# https://github.com/StackStorm/st2-auth-ldap | ||
./scripts/github/install-apt-packages-use-cache.sh |
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
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
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