hack the sample's Cargo.toml file to use this specific version of pgx dependencies from github
@@ -54,6 +54,14 @@ jobs:
- name: create new sample extension
run: cd /tmp/ && cargo pgx new sample
+ # hack Cargo.toml to use this version of pgx from github
+ - name: hack Cargo.toml
+ run: |
+ echo '[patch.crates-io]' >> /tmp/sample.Cargo.toml
+ echo 'pgx = { git = "https://github.com/zombodb/pgx", package = "pgx", rev = "${GITHUB_SHA}" }' >> /tmp/sample/Cargo.toml
+ echo 'pgx-macros = { git = "https://github.com/zombodb/pgx", package = "pgx-macros", rev = "${GITHUB_SHA}" }' >> /tmp/sample/Cargo.toml
+ echo 'pgx-tests = { git = "https://github.com/zombodb/pgx", package = "pgx-tests", rev = "${GITHUB_SHA}" }' >> /tmp/sample/Cargo.toml
+
# test that sample extension on all 4 Postgres'
- name: test sample on pg10
run: cd /tmp/sample && cargo pgx test pg10
