Skip to content

Commit 78efcf1

Browse files
committed
Add check for presence of toolkit package to APT and RPM checks
1 parent 345a0f0 commit 78efcf1

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/apt-arm-packages.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,22 @@ jobs:
9494
fi
9595
EOF
9696
97+
- name: Install toolkit
98+
run: |
99+
cat <<"EOF" | docker exec -i arm_container bash
100+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
101+
timescaledb-toolkit-postgresql-${{ matrix.pg }}
102+
EOF
103+
104+
- name: List available toolkit versions
105+
run: |
106+
cat <<"EOF" | docker exec -i arm_container bash
107+
apt-cache show timescaledb-toolkit-postgresql-${{ matrix.pg }} \
108+
| grep -e Version: -e Depends: \
109+
| tr '\n' ' ' \
110+
| sed -e 's! Version: !\n!g' -e 's!Version: !!' -e 's!$!\n!'
111+
EOF
112+
97113
- name: Kill container
98114
run: |
99115
docker kill arm_container

.github/workflows/apt-packages.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ jobs:
105105
false
106106
fi
107107
108+
- name: Install toolkit
109+
run: |
110+
apt-get install -y --no-install-recommends \
111+
timescaledb-toolkit-postgresql-${{ matrix.pg }}
112+
113+
- name: List available toolkit versions
114+
run: |
115+
apt-cache show timescaledb-toolkit-postgresql-${{ matrix.pg }} | grep -e Version: -e Depends: | tr '\n' ' ' | sed -e 's! Version: !\n!g' -e 's!Version: !!' -e 's!$!\n!'
116+
108117
- name: PostgreSQL log
109118
if: always()
110119
run: |

.github/workflows/rpm-packages.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,12 @@ jobs:
108108
false
109109
fi
110110
111+
- name: Install toolkit
112+
run: |
113+
yum install -y timescaledb-toolkit-postgresql-${{ matrix.pg }}
114+
115+
- name: List available toolkit versions
116+
run: |
117+
yum --showduplicates list timescaledb-toolkit-postgresql-${{ matrix.pg }}
118+
119+

0 commit comments

Comments
 (0)