Skip to content

Commit e4d2ad6

Browse files
committed
Cache poexam binary in CI
1 parent 2dcb0c1 commit e4d2ad6

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212

1313
checks:
1414

15+
env:
16+
POEXAM_VERSION: "0.0.12"
17+
1518
strategy:
1619
matrix:
1720
os:
@@ -23,10 +26,19 @@ jobs:
2326

2427
- uses: actions/checkout@v7
2528

26-
- name: Install dependencies
27-
run: |
28-
sudo apt-get install gettext
29-
cargo install --version 0.0.12 poexam
29+
- name: Install gettext
30+
run: sudo apt-get install gettext
31+
32+
- name: Cache poexam
33+
id: cache-poexam
34+
uses: actions/cache@v4
35+
with:
36+
path: ~/.cargo/bin/poexam
37+
key: poexam-${{ env.POEXAM_VERSION }}-${{ runner.os }}
38+
39+
- name: Install poexam
40+
if: steps.cache-poexam.outputs.cache-hit != 'true'
41+
run: cargo install --version "$POEXAM_VERSION" poexam
3042

3143
- name: Check gettext files
3244
run: make gettext

0 commit comments

Comments
 (0)