Skip to content

Commit 667ac99

Browse files
committed
pgrx
1 parent ea643b9 commit 667ac99

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ jobs:
1010
working-directory: pgml-extension
1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
submodules: 'recursive'
1315
- name: Fetch master
1416
run: |
1517
git fetch origin master --depth 1
1618
- name: Changed files in pgml-extension
1719
id: pgml_extension_changed
1820
run: |
1921
echo "PGML_EXTENSION_CHANGED_FILES=$(git diff --name-only HEAD origin/master . | wc -l)" >> $GITHUB_OUTPUT
20-
- name: Install dependencies
22+
- name: System dependencies
2123
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
2224
run: |
2325
sudo apt-get update && \
@@ -35,19 +37,6 @@ jobs:
3537
python3 \
3638
lld
3739
sudo pip3 install -r requirements.linux.txt
38-
- name: Cache dependencies
39-
uses: buildjet/cache@v3
40-
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
41-
with:
42-
path: |
43-
~/.cargo
44-
pgml-extension/target
45-
~/.pgrx
46-
key: ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}
47-
- name: Submodules
48-
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
49-
run: |
50-
git submodule update --init --recursive
5140
- name: Install pgrx
5241
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
5342
run: |
@@ -59,6 +48,15 @@ jobs:
5948
cargo pgrx init
6049
echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-16/postgresql.conf
6150
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') }}-bust1
6260
- name: Update extension
6361
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
6462
run: |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy