Skip to content

Commit dee9011

Browse files
committed
Cache tlaps installation to reduce load on Action builder and INRIA host.
1 parent 7acb614 commit dee9011

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ jobs:
1616
- name: Get current date
1717
id: date
1818
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M')"
19+
# Do not download and install TLAPS over and over again.
20+
- uses: actions/cache@v1
21+
id: cache
22+
with:
23+
path: tlaps/
24+
key: tlaps1.4.5
1925
- name: Get TLAPS
26+
if: steps.cache.outputs.cache-hit != 'true' # see actions/cache above
2027
run: wget https://tla.msr-inria.inria.fr/tlaps/dist/current/tlaps-1.4.5-x86_64-linux-gnu-inst.bin
2128
- name: Install TLAPS
29+
if: steps.cache.outputs.cache-hit != 'true' # see actions/cache above
2230
run: |
2331
chmod +x tlaps-1.4.5-x86_64-linux-gnu-inst.bin
2432
./tlaps-1.4.5-x86_64-linux-gnu-inst.bin -d tlaps

0 commit comments

Comments
 (0)