Skip to content

Commit

Permalink
feat: add asdf tool cache (#282)
Browse files Browse the repository at this point in the history
* feat: add asdf tool cache

* chore: bump postgres-integ runner to 24.04

to align with the other runners being on 24.04 and the cache will otherwise have problem if they differ

* chore: add runner arch to tooling cache

e.g. arm incompatible with x86 but cache was the same
  • Loading branch information
Langleu authored Jan 10, 2025
1 parent 49c5f0d commit 9afa2cf
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Cache asdf installation
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-${{ runner.arch }}-tooling-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-tooling-
- name: Install tooling using asdf
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3

Expand Down Expand Up @@ -164,6 +174,16 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Cache asdf installation
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-${{ runner.arch }}-tooling-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-tooling-
- name: Install tooling using asdf
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3

Expand Down Expand Up @@ -210,7 +230,7 @@ jobs:
fail-fast: false # don't propagate failing jobs
matrix:
runner_desc:
- runner: ubuntu-22.04
- runner: ubuntu-24.04
postgres_replicas: 1
keycloak_jdbc_driver: postgresql
keycloak_db_driver: org.postgresql.Driver
Expand Down Expand Up @@ -255,6 +275,16 @@ jobs:
libsqlite3-dev libffi-dev tcl-dev linux-headers-generic libgdbm-dev \
libreadline-dev tk tk-dev
- name: Cache asdf installation
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-${{ runner.arch }}-tooling-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-tooling-
- name: Install tooling using asdf
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3

Expand Down Expand Up @@ -484,6 +514,16 @@ jobs:
python-enabled: false
buildx-install: true

- name: Cache asdf installation
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-${{ runner.arch }}-tooling-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-tooling-
- name: Install tooling using asdf
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3

Expand Down

0 comments on commit 9afa2cf

Please sign in to comment.