Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update all dependencies #1668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 16, 2025
Merged
Prev Previous commit
Next Next commit
update ci
  • Loading branch information
montanalow committed Jan 15, 2025
commit f4c609df304c808f6f3f5a4b6099d34718084d53
12 changes: 5 additions & 7 deletions 12 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
working-directory: pgml-extension
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Fetch master
run: |
git fetch origin master --depth 1
Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
~/.cargo
pgml-extension/target
~/.pgrx
key: ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust2
key: ${{ runner.os }}-rust-1.74-${{ hashFiles('pgml-extension/Cargo.lock') }}-bust3
- name: Install pgrx
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
Expand All @@ -55,17 +53,17 @@ jobs:

if [[ ! -d ~/.pgrx ]]; then
cargo pgrx init
echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-16/postgresql.conf
echo "shared_preload_libraries = 'pgml'" >> ~/.pgrx/data-17/postgresql.conf
fi
- name: Update extension test
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
git checkout origin/master
echo "\q" | cargo pgrx run
psql -p 28816 -h localhost -d pgml -P pager -c "DROP EXTENSION IF EXISTS pgml CASCADE; DROP SCHEMA IF EXISTS pgml CASCADE; CREATE EXTENSION pgml;"
psql -p 28817 -h localhost -d pgml -P pager -c "DROP EXTENSION IF EXISTS pgml CASCADE; DROP SCHEMA IF EXISTS pgml CASCADE; CREATE EXTENSION pgml;"
git checkout $GITHUB_SHA
echo "\q" | cargo pgrx run
psql -p 28816 -h localhost -d pgml -P pager -c "ALTER EXTENSION pgml UPDATE;"
psql -p 28817 -h localhost -d pgml -P pager -c "ALTER EXTENSION pgml UPDATE;"
- name: Unit tests
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
Expand All @@ -74,4 +72,4 @@ jobs:
if: steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
run: |
echo "\q" | cargo pgrx run
psql -p 28816 -h 127.0.0.1 -d pgml -P pager -f tests/test.sql
psql -p 28817 -h 127.0.0.1 -d pgml -P pager -f tests/test.sql
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.