Skip to content

Commit

Permalink
Postgres version
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 3, 2024
1 parent 98973bc commit da83f83
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
uses: Swatinem/rust-cache@v2
with: { cache-directories: /home/runner/.pgrx }
- name: Install pgrx
run: cargo install cargo-pgrx --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)" --locked
run: cargo install cargo-pgrx --locked --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)"
- name: Initialize pgrx
run: cargo pgrx init
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#postgresql
run: cargo pgrx init --pg14="$(which pg_config)"
- name: Cargo format
run: cargo fmt --all --check
- name: Clippy
Expand All @@ -45,10 +46,10 @@ jobs:
run: sudo ./.ci/apt-install-postgres ${{ matrix.pg }}
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
with: { cache-directories: /home/runner/.pgrx }
with: { cache-directories: "${{ env.HOME }}" }
- run: env
- name: Install pgrx
run: cargo install cargo-pgrx --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)" --locked
run: cargo install cargo-pgrx --locked --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)"
- name: Initialize pgrx
run: cargo pgrx init --pg${{ matrix.pg }}="$(which pg_config)"
- name: Run the tests
Expand Down

0 comments on commit da83f83

Please sign in to comment.