Commit graph

226 commits

Author SHA1 Message Date
Andrew Walsh 1ce68138bc
docs: update README.md 2026-11-09 11:44:37 -08:00
Andrew Walsh 1bfde3eeab
Render README title as a centered heading under the logo (#241)
The title was inline <b> text next to the logo, so it rendered at body size.
Put the logo in its own centered paragraph and the title in a centered <h1>.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:01:23 -08:00
Andrew Walsh dc61c188e3
Pin list-versions tests to ubuntu-24.04 (#236)
ubuntu-latest moved to a newer Ubuntu release, so apt now resolves
rolldice=1.16-1build4 and xdot=1.6-1 instead of the hard-coded Ubuntu
24.04 versions these tests compare against. Both jobs have failed on
master since 2026-11-06 13:56 UTC.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:12:09 -08:00
Andrew Walsh 3fbf345137
Speed up and fix spaces-in-paths regression tests (#235)
The issue #76 test installed Intel oneAPI from Intel's apt repo plus
opencl and libsundials-dev from the Ubuntu mirror. None of the extra
installs are used by the test, and libsundials-dev pulls in 155 packages
(188 MB); with a slow Azure mirror this made the job take 75+ minutes.
Cache libopenal-data instead, which ships "Default HRTF.mhr" and needs no
third-party repo, and cap the job at 15 minutes.

The issue #81 test no longer caches alsa-ucm-conf on the current runner
image, so list it explicitly.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:08:58 -08:00
Andrew Walsh 8ca4b8b268
Deduplicate action test setup and expected-failure steps (#225)
Move the artifact download and distribute directory setup, repeated in all
31 test jobs, into the local composite action setup-distribute. Move the
expected-failure verification, repeated in 5 jobs, into expect-failure,
which also reports the actual step outcome.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 05:56:14 -08:00
Andrew Walsh 32eff9e8b1
Refresh README for current v1 state (#226)
Rebased onto master without #224, which moved to v2 (#230). The Errors
section now lists only the input validation exit codes v1 has, with a
note that some resolution and install failures aren't caught in v1.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:12:48 -08:00
Andrew Walsh 75f34b28cb
Explain cache scoping across branches in README (#227)
The cache key doesn't include the branch, but GitHub only lets a run
restore caches from its own branch or its base branch. Document this and
how to share one cache across branches by populating it on the default
branch.

Refs #186

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:05:10 -08:00
Andrew Walsh 0e7f5cdc6b
Remove dependency on cache-apt-pkgs-action-ci repo (#223)
* Remove dependency on cache-apt-pkgs-action-ci repo

The action's own workflows (action-tests.yml) already run the same test
jobs as the -ci repo, against the local checkout before merge, so the
separate CI repo is redundant.

- Remove the pub_{master,dev,staging}_push_event.yml workflows that
  dispatched events to the -ci repo (PUBLISH_PUSH_TOKEN secret can be
  deleted from repository settings).
- Point the README test badges at action-tests.yml.
- Port the release-tag tooling (moves the v1 and latest tags) from the
  -ci repo into scripts/release/ and add an update_release_tags
  workflow. Scripts now operate on the current clone instead of
  assuming a sibling checkout, run non-interactively when CI=true, and
  fix the target-tag validation bug in copy_tag.sh.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0112vpMFQJc7Nz7FwE71r5do

* Upgrade golangci-lint to v2 for golangci-lint-action v9

golangci-lint-action >= v7 rejects golangci-lint v1, so the Lint step
failed before installing. Move to golangci-lint v2.14.0 and add a v2
config that keeps the default exclusions v1 applied implicitly. Fix the
one new staticcheck QF1008 finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update expected gir1.2-gdkpixbuf-2.0 version in action tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:03:23 -08:00
awalsh128 58600a5c77 Merge branch 'master' of https://github.com/awalsh128/cache-apt-pkgs-action 2026-06-29 23:15:44 -07:00
awalsh128 6d362b84d4 Put v1 in maintenance mode. 2026-06-29 23:15:16 -07:00
copilot-swe-agent[bot] 553a35bb8e Refactor: extract ARCH_DIRS array to eliminate duplication in consolidate-release 2026-06-29 23:00:54 -07:00
copilot-swe-agent[bot] aecf4c42e4 Fix create-release CI failure: consolidate release artifacts and restrict to workflow_dispatch only 2026-06-29 23:00:54 -07:00
awalsh128 9f817f32fd Merge branch 'master' of https://github.com/awalsh128/cache-apt-pkgs-action 2026-06-29 22:48:17 -07:00
awalsh128 c107d9850d Bump all action dependency versions and pin them 2026-06-29 22:47:54 -07:00
copilot-swe-agent[bot] b3b266d824 fix: ensure create-release job is skipped in dry-run (workflow_call) mode 2026-06-29 22:40:59 -07:00
copilot-swe-agent[bot] 5602509099 fix: address code review feedback in distribute.sh 2026-06-29 22:40:59 -07:00
copilot-swe-agent[bot] a50a475226 fix: create scripts/distribute.sh for build-distribute workflow 2026-06-29 22:40:59 -07:00
awalsh128 869c1d6651 Revert "add shellcheck linting"
This reverts commit e58a49f1de.
2026-06-29 22:29:52 -07:00
Michael Herger 22ad28f4ce Update README with deprecation notice for 'latest'
Added note about deprecation of the 'latest' symbol.
2026-06-27 13:41:09 -07:00
Michael Herger b9c7b1c1a2 Fix version labels and update action version references
Updated version labels and action versions in README. `latest` is deprecated. This change should be reflected in the documentation.
2026-06-27 13:41:09 -07:00
copilot-swe-agent[bot] 5513791f75 fix: handle apt showpkg warnings 2026-06-13 16:56:35 -07:00
copilot-swe-agent[bot] fe5b289324 test: add apt warning regression coverage 2026-06-13 16:56:35 -07:00
Mahyar McDonald e58a49f1de add shellcheck linting
- Updated variable expansions to use double quotes for better safety and to prevent word splitting.
- Replaced `ls` with `find` in cache operations to handle non-alphanumeric filenames more robustly.
- Enhanced array handling in scripts by using `${*:N}` syntax for concatenation.
- Improved readability and consistency in conditional checks by using `[[ ... ]]` instead of `[ ... ]`.
- Added comments for clarity on specific operations and shellcheck directives.
2026-06-13 16:54:54 -07:00
Copilot 599df6ec23
Fix apt-cache package lookup failure in nektos/act environments (#172)
* Initial plan

* Add apt package list update to fix nektos/act compatibility

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Remove build artifacts and update .gitignore

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Refactor apt list update logic into shared library function

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Only update apt lists when running in nektos/act environment

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
Co-authored-by: Andrew Walsh <awalsh128@gmail.com>
2026-06-13 16:49:12 -07:00
Copilot cd5ee21d96
[WIP] Fix test workflows for actions (#184)
* Initial plan

* Fix test workflows to download artifacts and use local action

- Add needs: [build_binaries] to all test jobs that use the action
- Replace remote action references with local (uses: ./)
- Add checkout step where missing
- Add artifact download and distribute directory setup before action usage
- This ensures binaries built by build_binaries job are available when tests run

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
2026-06-13 16:46:15 -07:00
George Joseph c0e0741be6
install_and_cache_pkgs.sh: Fix two issues saving preinst and postinst scripts. (#195)
1.  The logic for listing the files to be cached was using `&&`s between
the listing of the package files, the preinst script and postinst script.
Therefore if there wasn't a preinst script, a postinst script wasn't
checked for.

2. get_install_script_filepath was being passed an empty root file path
so it would never find any files.

Resolves: #194
2026-06-13 16:24:40 -07:00
Copilot 497648d2e1
Apply PR #193 dependency pinning to action.yml (overwrite current action refs) (#201)
* Bump actions/cache off of Node 20

* Bump actions/upload-artifact off of Node 20

---------

Co-authored-by: Sebastian P <241632094+immoseb@users.noreply.github.com>
2026-06-13 16:16:10 -07:00
Paul Keen 681749ae56
fix: upgrade actions/cache v4→v5 and upload-artifact v4→v7 (Node 24) (#198)
Node.js 20 actions are deprecated — GitHub will force Node.js 24
starting June 2, 2026.

- actions/cache/restore v4 → v5
- actions/cache/save v4 → v5
- actions/upload-artifact v4.6.2 → v7

Using version tags for clarity.

See: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2026-06-13 16:02:10 -07:00
Dane Wilson acb598e5dd
Pin actions for immutable and secure dependency versions (#175)
Pin dependency actions per security best practices.

https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions
2025-10-03 23:35:39 -07:00
Copilot 23602f4229
Add support for third-party PPA repositories via add-repository parameter (#173)
* Initial plan

* Add add-repository parameter support for third-party PPAs

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Add validation and complete PPA repository support implementation

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Remove accidentally committed log file and update .gitignore

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
2025-09-30 01:06:22 -07:00
Copilot 2ae65d5bbf
Fix ls error when no tar files exist in cache restore (#170)
* Initial plan

* Fix ls error when no tar files exist in cache restore

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
2025-09-30 01:06:02 -07:00
awalsh128 9f7a885e33 Support symlinks and their targets. 2025-08-29 21:40:34 -07:00
Takahiro Ueda a605dbde2a
Add empty_packages_behavior option to handle empty package list (#154)
Available options: 'error' (default), 'warn' and 'ignore'.
2025-08-16 19:34:34 -07:00
awalsh128 2c09a5e66d Binary for https://github.com/awalsh128/cache-apt-pkgs-action/pull/160 2025-08-10 17:15:27 -07:00
Sébastien Morais 9a146f43d1
fix: skip invalid lines (#160) 2025-08-10 17:11:12 -07:00
Mike Tesch cbdbab28e6
Automatically append the OS architecture to the cache key (#150) 2025-08-10 13:24:23 -07:00
Andrew Walsh 23ccb675d9
Update README.md 2025-07-07 20:37:29 -07:00
Andrew Walsh db548ecc55
Update README.md 2025-07-07 20:35:48 -07:00
Khyber Sen 4c82c3ccdc
Remove GitHub URL shorteners (git.io) as they no longer work. (#164)
Fixes #163.
2025-07-07 20:15:12 -07:00
awalsh128 7ca5f46d06 Fix exec error. 2025-03-16 14:39:03 -07:00
Andrew Walsh 2330cb6dfb
Add support for virtual packages and break out APT logic into common library. (#155)
* Add support for virtual packages and break out APT logic into common library.
* Update binaries from commit 128de25ccb
2025-03-16 13:05:35 -07:00
Andrew Walsh 128de25ccb
Add support for virtual packages and break out APT logic into common library. (#153) 2025-03-16 12:35:38 -07:00
Bradley Scott 13d2226e13
Avoid using xargs when creating package tarballs (#136) 2025-02-04 10:08:04 -08:00
Ülgen Sarıkavak d1a184e480
Update actions/checkout versions in README (#148) 2025-02-03 11:42:51 -08:00
Jacco Broeren dfe9c8af34
fix: remove timestamps from loglines (#146) 2025-01-23 20:00:46 -08:00
Max Schwenk 5902b33ae2
Upgrade to cache v4 (#140) 2025-01-09 11:16:31 -08:00
Andrew Walsh f2fc6d1af4 Explicitly don't fail on error in library calls (required for conditonals) 2024-03-03 14:39:27 -08:00
Oliver Kopp a6c3917cc9
Add arm64 binary (#127)
* Add support for arm64 APT in Go apt-query binary.
2024-03-01 12:59:14 -08:00
Andrew Walsh 2555a377df
Bump force reload to accommodate update on cache action save version. #122 2024-02-13 21:42:01 -08:00
Hadrien G 75ab37ec52
Use matching versions of actions/cache actions (#123)
Needed to finish migration to node20 + probably wiser overall to use matching versions of the caching actions.
2024-02-13 21:38:36 -08:00