|
37 | 37 | python3 \ |
38 | 38 | lld |
39 | 39 | sudo pip3 install -r requirements.linux.txt |
| 40 | + -name:Cache dependencies |
| 41 | +uses:buildjet/cache@v3 |
| 42 | +if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0' |
| 43 | +with: |
| 44 | +path:| |
| 45 | + ~/.cargo |
| 46 | + pgml-extension/target |
| 47 | + ~/.pgrx |
| 48 | +key:${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust2 |
40 | 49 | -name:Install pgrx |
41 | 50 | if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0' |
42 | 51 | run:| |
|
48 | 57 | cargo pgrx init |
49 | 58 | echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-16/postgresql.conf |
50 | 59 | fi |
51 | | - -name:Cache dependencies |
52 | | -uses:buildjet/cache@v3 |
53 | | -if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0' |
54 | | -with: |
55 | | -path:| |
56 | | - ~/.cargo |
57 | | - pgml-extension/target |
58 | | - ~/.pgrx |
59 | | -key:${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }} |
60 | 60 | -name:Update extension test |
61 | 61 | if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0' |
62 | 62 | run:| |
|