Skip to content

Commit 526157a

Browse files
authored
ci: use locked installation for cargo-pgrx and cargo-component (#513)
* ci: use locked installation for cargo-pgrx * ci: add locked option for cargo-component installation
1 parent 86124dd commit 526157a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
sudo apt -y autoremove && sudo apt -y clean
4141
sudo chmod a+rwx `/usr/lib/postgresql/15/bin/pg_config --pkglibdir` `/usr/lib/postgresql/15/bin/pg_config --sharedir`/extension /var/run/postgresql/
4242
43-
- run: cargo install cargo-pgrx --version 0.16.0
43+
- run: cargo install --locked cargo-pgrx --version 0.16.0
4444
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
4545

4646
- name: Build docker images

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
# Ensure cargo/rust on path
103103
source "$HOME/.cargo/env"
104104
105-
cargo install cargo-pgrx --version ${{ matrix.pgrx_version }} --locked
105+
cargo install --locked cargo-pgrx --version ${{ matrix.pgrx_version }} --locked
106106
cargo pgrx init --pg${{ matrix.postgres }}=/usr/lib/postgresql/${{ matrix.postgres }}/bin/pg_config
107107
108108
# selects the pgVer from pg_config on path

.github/workflows/release_wasm_fdw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
rustup target add wasm32-unknown-unknown
3939
4040
# install Wasm component
41-
cargo install cargo-component --version 0.21.1
41+
cargo install --locked cargo-component --version 0.21.1
4242
4343
# install rustfmt for the toolchain
4444
rustup component add rustfmt

.github/workflows/test_supabase_wrappers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sudo apt -y autoremove && sudo apt -y clean
3737
sudo chmod a+rwx `/usr/lib/postgresql/15/bin/pg_config --pkglibdir` `/usr/lib/postgresql/15/bin/pg_config --sharedir`/extension /var/run/postgresql/
3838
39-
- run: cargo install cargo-pgrx --version 0.16.0
39+
- run: cargo install --locked cargo-pgrx --version 0.16.0
4040
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
4141

4242
- name: Format code

.github/workflows/test_wrappers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
sudo apt -y autoremove && sudo apt -y clean
4444
sudo chmod a+rwx `/usr/lib/postgresql/15/bin/pg_config --pkglibdir` `/usr/lib/postgresql/15/bin/pg_config --sharedir`/extension /var/run/postgresql/
4545
46-
- run: cargo install cargo-pgrx --version 0.16.0
46+
- run: cargo install --locked cargo-pgrx --version 0.16.0
4747
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
4848

4949
- name: Format code
@@ -91,9 +91,9 @@ jobs:
9191
sudo apt -y autoremove && sudo apt -y clean
9292
sudo chmod a+rwx `/usr/lib/postgresql/15/bin/pg_config --pkglibdir` `/usr/lib/postgresql/15/bin/pg_config --sharedir`/extension /var/run/postgresql/
9393
94-
- run: cargo install cargo-pgrx --version 0.16.0
94+
- run: cargo install --locked cargo-pgrx --version 0.16.0
9595
- run: cargo pgrx init --pg15 /usr/lib/postgresql/15/bin/pg_config
96-
- run: cargo install cargo-component --version 0.21.1
96+
- run: cargo install --locked cargo-component --version 0.21.1
9797
- run: rustup target add wasm32-unknown-unknown
9898

9999
- name: Build Wasm FDWs

0 commit comments

Comments
 (0)