Skip to content

Commit

Permalink
fix: Fix shell expansion in Debian-based packaging (paradedb#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemnoel authored Jun 22, 2024
1 parent 25e166e commit b7f54f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish-pg_lakehouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ jobs:
with:
toolchain: nightly-2024-04-21

# Note: We need to specify bash as the shell to ensure that it doesn't default to /bin/sh on Debian, which doesn't support the `[[` syntax
- name: Retrieve OS & GitHub Tag Versions
id: version
shell: bash
run: |
if [ -z "${{ github.event.inputs.version }}" ]; then
if [[ $GITHUB_REF == refs/tags/v* ]]; then
Expand Down Expand Up @@ -267,8 +269,10 @@ jobs:
- name: Install pgrx
run: cargo install -j $(nproc) --locked cargo-pgrx --version 0.11.3

# Note: We need to specify bash as the shell to ensure that it doesn't default to /bin/sh on Debian, which doesn't support the `[[` syntax
- name: Initialize pgrx for Current PostgreSQL Version
working-directory: pg_lakehouse/
shell: bash
run: |
if [[ "${{ matrix.image }}" == "redhat/ubi8:latest" || "${{ matrix.image }}" == "redhat/ubi9:latest" ]]; then
PG_CONFIG_PATH="/usr/pgsql-${{ matrix.pg_version }}/bin/pg_config"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-pg_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

# Note: We need to specify bash as the shell to ensure that it doesn't default to /bin/sh on Debian, which doesn't support the `[[` syntax
- name: Retrieve OS & GitHub Tag Versions
id: version
shell: bash
run: |
if [ -z "${{ github.event.inputs.version }}" ]; then
if [[ $GITHUB_REF == refs/tags/v* ]]; then
Expand Down Expand Up @@ -263,8 +265,10 @@ jobs:
- name: Install pgrx
run: cargo install --locked cargo-pgrx --version 0.11.3

# Note: We need to specify bash as the shell to ensure that it doesn't default to /bin/sh on Debian, which doesn't support the `[[` syntax
- name: Initialize pgrx for Current PostgreSQL Version
working-directory: pg_search/
shell: bash
run: |
if [[ "${{ matrix.image }}" == "redhat/ubi8:latest" || "${{ matrix.image }}" == "redhat/ubi9:latest" ]]; then
PG_CONFIG_PATH="/usr/pgsql-${{ matrix.pg_version }}/bin/pg_config"
Expand Down

0 comments on commit b7f54f6

Please sign in to comment.