Commit graph

148 commits

Author SHA1 Message Date
Andrew Walsh
9bc3e210f3
Fix ordering of library function call and include of library #68
Fix validation bool function and turn on halt and exit flag `set -e` to guard against regression.
2022-11-24 08:59:56 -08:00
awalsh128
982de21c87 Fix execute bits. 2022-11-23 23:02:00 -08:00
awalsh128
4fcaa16dbf Merge branch 'master' of https://github.com/awalsh128/cache-apt-pkgs-action 2022-11-23 23:00:06 -08:00
Andrew Walsh
c51c800bea
Dev (#67)
* Fix permission denied error.

* Fix permission denied error. (#51)

* Remove compression from file caching. (#53)

* Draft of postinst support from issue #44.

* Remove bad option.

* Removed extraneous line.

* Cover no packages edge case when writing manifest.

* Fix postinst bugs and add docs to lib.

* Made cache directory variable and more refinements to postinst.

* Update deprecated option.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Rollback accidental commit of new postinst feature.

* Minor edit ands full install script execution FR.

* Fix execute_install_scripts message to show the right param name.

* Fix param check.

* Minor fix to doc.

* Upload action logs for debugging.

* Make artifact names unique.

* Add debug option.

* Update description.

* Debug package list issue.

* Rollback 76128c60a1

* Revert outputs set behavior to see if it fixes outputs issue in dev.

* Restore updated outputs behavior. So strange it is working when I revert.

* Fix bugs in install script execution.

* Add error suppression on file testing.

* Debug feature.

* Link to the issue that started the postinst troubleshooting.

* Describe action version usage.

* Fix package outputs command.

* Execute installation scripts and debug mode features. (#64)

* Provide the ability to call Debian package manager installation scripts (i.e. `*.[preinst, postinst]`).
* Introduce a debug mode that runs the scripts in verbose mode and uploads the logs for retrieval.
* Updated README to reflect new features and provided more info on how to use the action versions.

* Restore execute bit for script.

* Fix execute bit on script.
2022-11-23 22:32:40 -08:00
Andrew Walsh
51678ad913
Execute installation scripts feature, debug mode, and permission denied fix. (#65)
* Execute installation scripts and debug mode features. (#64)

* Provide the ability to call Debian package manager installation scripts (i.e. `*.[preinst, postinst]`).
* Introduce a debug mode that runs the scripts in verbose mode and uploads the logs for retrieval.
* Updated README to reflect new features and provided more info on how to use the action versions.

* Dev (#66)

* Fix permission denied error.

* Fix permission denied error. (#51)

* Remove compression from file caching. (#53)

* Draft of postinst support from issue #44.

* Remove bad option.

* Removed extraneous line.

* Cover no packages edge case when writing manifest.

* Fix postinst bugs and add docs to lib.

* Made cache directory variable and more refinements to postinst.

* Update deprecated option.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Rollback accidental commit of new postinst feature.

* Minor edit ands full install script execution FR.

* Fix execute_install_scripts message to show the right param name.

* Fix param check.

* Minor fix to doc.

* Upload action logs for debugging.

* Make artifact names unique.

* Add debug option.

* Update description.

* Debug package list issue.

* Rollback 76128c60a1

* Revert outputs set behavior to see if it fixes outputs issue in dev.

* Restore updated outputs behavior. So strange it is working when I revert.

* Fix bugs in install script execution.

* Add error suppression on file testing.

* Debug feature.

* Link to the issue that started the postinst troubleshooting.

* Describe action version usage.

* Fix package outputs command.
2022-11-23 22:24:00 -08:00
Andrew Walsh
276bbdc9f3
Update issue templates 2022-11-23 22:13:12 -08:00
Mickaël Schoentgen
d93c95e39c
Skip apt-fast installation on cache hit (#61) 2022-11-15 07:45:14 -08:00
Andrew Walsh
677fd9bce5
Update deprecated set-output command #58 (#59) 2022-10-30 11:49:55 -07:00
Andrew Walsh
c58510bf41
Remove compression from file caching. (#53) (#54) (#55) 2022-09-03 21:40:21 -07:00
Andrew Walsh
09f9c08872
Fix permission denied error. (#51) 2022-09-01 14:40:15 -07:00
Andrew Walsh
fc1d3efd6e
Update README.md to use latest release in examples. 2022-08-02 23:16:37 -07:00
Andrew Walsh
91b541353e
Fix issues #36, #37, and minor refactors. (#40) (#41)
* Bump license year.
* Fix pre-existing dep bug in issue #36.
* Account for packages without deps.
* Fix bug in issue #37 by combining install and dep listing reads. Ensures only installed deps are cached.
* Fix bad log lines.
* Use apt-fast to show package information and remove CLI warning message.
* Switch to apt-cache for package verification and remove CLI warning message.
2022-08-02 21:14:51 -07:00
Andrew Walsh
c5df606b25
Optimize installs with apt-fast and various minor cleanups. (#35)
* Fix cut regression.

Originally fixed in #17. This was reintroduced when master was sync'd to staging.

* Update pre_cache_action.sh

* Switch to CLI safe apt command.

Address concern in issue #23.

* Optimize installs with apt-fast and cleanup logging.
2022-07-23 17:06:17 -07:00
Andrew Walsh
97133735cc
Fix cut regression.
Originally fixed in #17. This was reintroduced when master was sync'd to staging.
2022-07-20 10:58:33 -07:00
Andrew Walsh
704b3e1a64
Merge pull request #27 from awalsh128/staging
Rollup staging to master.
2022-07-19 21:12:46 -07:00
Andrew Walsh
c4bc8b6ed5
Merge branch 'master' into staging 2022-07-19 21:12:17 -07:00
awalsh128
e3e8536b71 Add newline at EOF to lib.sh 2022-07-19 21:08:41 -07:00
awalsh128
d3470979cf Fix all-package-version-list output bug. 2022-07-19 21:01:08 -07:00
awalsh128
f1a79a837b Minor bug. 2022-07-19 20:51:50 -07:00
awalsh128
8af57b352e Fix all packages reporting. 2022-07-19 20:46:02 -07:00
awalsh128
1e75d90dc9 Merge script include snippet. 2022-07-19 20:44:04 -07:00
awalsh128
b61cf9a6f1 Copy from staging to dev. 2022-07-19 20:42:48 -07:00
Andrew Walsh
a85a2de3b3 Update installation to consider symlinks as well.
Addresses problem raised in #25
2022-07-19 20:34:24 -07:00
awalsh128
c58b29a1aa Merge branch 'staging' of https://github.com/awalsh128/cache-apt-pkgs-action into staging 2022-07-19 20:03:15 -07:00
awalsh128
f7b89333d6 Copy from master to staging. 2022-07-19 20:02:22 -07:00
awalsh128
0735dbdc22 Update package gathering. 2022-07-19 19:53:44 -07:00
awalsh128
f20c69935b Minor bug. 2022-07-15 16:14:30 -07:00
awalsh128
053557ecd1 Fix all packages reporting. 2022-07-15 16:11:14 -07:00
awalsh128
d5b9449cd3 Merge script include snippet. 2022-07-15 15:38:51 -07:00
awalsh128
1d2f5e1b23 Merge branch 'staging' 2022-07-15 15:28:17 -07:00
Andrew Walsh
e5ab96be47
Update to v3 cache action. 2022-07-15 12:56:06 -07:00
Andrew Walsh
cda771820d
Update to v3 cache action. 2022-07-15 12:55:37 -07:00
awalsh128
fa7091e9a8 Fix sorting when normalizing package list. 2022-07-14 21:57:20 -07:00
awalsh128
9a4f0f7d01 Merge branch 'staging' of https://github.com/awalsh128/cache-apt-pkgs-action into staging 2022-07-14 21:45:14 -07:00
awalsh128
63f7fccab9 Simplify logging calls. 2022-07-14 21:44:35 -07:00
Andrew Walsh
c21469a518
Update installation to consider symlinks as well.
Addresses problem raised in #25
2022-07-14 21:23:42 -07:00
Andrew Walsh
39faaf9bee
Update installation to consider symlinks as well.
Addresses problem raised in #25
2022-07-14 21:19:19 -07:00
awalsh128
768417e4ec Fix dependency listing. 2022-06-30 08:41:19 -07:00
awalsh128
60c15ce2f0 Include library in all scripts. 2022-06-30 08:28:26 -07:00
awalsh128
7274c01428 Fix minor bug. 2022-06-30 08:24:18 -07:00
awalsh128
f6ea1022c2 Add log timings for perf debugging. 2022-06-30 07:13:58 -07:00
awalsh128
eb177a2a2b Report file size of cached packages. 2022-06-30 06:43:45 -07:00
awalsh128
843a78dbf3 Fix manifest output on restore. 2022-06-30 06:37:31 -07:00
awalsh128
f5249e37b0 Update caching log lines. 2022-06-30 06:29:47 -07:00
awalsh128
f9b0016d02 Inline dependency reporting in log. 2022-06-30 06:28:52 -07:00
awalsh128
a91bf7b286 Create a new output for all packages including dependencies. 2022-06-30 06:18:19 -07:00
awalsh128
903a8a32ff Fix read package name and version call. 2022-06-30 02:10:23 -07:00
awalsh128
bc3229644b Fix another package enumeration. 2022-06-30 01:41:00 -07:00
awalsh128
cb0990bfa2 Fix package enumeration. 2022-06-30 01:35:13 -07:00
awalsh128
686ae5cbb1 Fix package enumeration. 2022-06-30 01:27:20 -07:00