Skip to content

Commit 8efd507

Browse files
committed
Add a houdini cache job to keep Houdini caches alive
Signed-off-by: Dan Bailey <danbailey@ilm.com>
1 parent 4e02cba commit 8efd507

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/houdinicache.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
name: HoudiniCache
3+
4+
on:
5+
push:
6+
paths-ignore:
7+
- 'pendingchanges/**'
8+
- 'tsc/meetings/**'
9+
pull_request:
10+
paths-ignore:
11+
- 'pendingchanges/**'
12+
- 'tsc/meetings/**'
13+
14+
jobs:
15+
houdini-cache-linux:
16+
if: ${{ github.repository_owner == 'AcademySoftwareFoundation' }}
17+
runs-on: ubuntu-latest
18+
name: houcache:${{ matrix.config.image }}:${{ matrix.config.hou_hash }}
19+
container:
20+
image: aswf/ci-base:${{ matrix.config.image }}
21+
strategy:
22+
matrix:
23+
config:
24+
- { image: '2026', hou_hash: '21_0' }
25+
- { image: '2024', hou_hash: '20_5' }
26+
fail-fast: false
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: timestamp
30+
id: timestamp
31+
run: echo "timestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
32+
- name: fetch_houdini
33+
uses: actions/cache/restore@v3
34+
with:
35+
path: hou
36+
key: dummy-houdini${{ matrix.config.hou_hash }}-${{ steps.timestamp.outputs.timestamp }}
37+
restore-keys: vdb-v5-houdini${{ matrix.config.hou_hash }}-
38+
- name: validate_houdini
39+
run: test -f "hou/hou.tar.gz"
40+
41+
houdini-cache-mac:
42+
if: ${{ github.repository_owner == 'AcademySoftwareFoundation' }}
43+
runs-on: macos-latest
44+
name: houcache:macos:latest
45+
steps:
46+
- uses: actions/checkout@v3
47+
- name: fetch_houdini
48+
uses: actions/cache/restore@v3
49+
with:
50+
path: hou
51+
key: dummy-houdini
52+
restore-keys: vdb-v5-houdini-macos-
53+
- name: validate_houdini
54+
run: test -f "hou/hou.tar.gz"

0 commit comments

Comments
 (0)