mirror of https://github.com/citusdata/citus.git
skip rpm
parent
0ec43fb951
commit
54c1ba422f
|
@ -35,28 +35,28 @@ jobs:
|
||||||
# Below line is needed to set the output variable to be used in the next job
|
# Below line is needed to set the output variable to be used in the next job
|
||||||
echo "pg_versions=${pg_versions_array}" >> $GITHUB_OUTPUT
|
echo "pg_versions=${pg_versions_array}" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
rpm_build_tests:
|
# rpm_build_tests:
|
||||||
name: rpm_build_tests
|
# name: rpm_build_tests
|
||||||
needs: get_postgres_versions_from_file
|
# needs: get_postgres_versions_from_file
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
strategy:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
matrix:
|
# matrix:
|
||||||
# While we use separate images for different Postgres versions in rpm
|
# # While we use separate images for different Postgres versions in rpm
|
||||||
# based distros
|
# # based distros
|
||||||
# For this reason, we need to use a "matrix" to generate names of
|
# # For this reason, we need to use a "matrix" to generate names of
|
||||||
# rpm images, e.g. citus/packaging:centos-7-pg12
|
# # rpm images, e.g. citus/packaging:centos-7-pg12
|
||||||
packaging_docker_image:
|
# packaging_docker_image:
|
||||||
# - oraclelinux-8
|
# - oraclelinux-8
|
||||||
# - almalinux-8
|
# - almalinux-8
|
||||||
- almalinux-9
|
# - almalinux-9
|
||||||
# POSTGRES_VERSION: ${{ fromJson(needs.get_postgres_versions_from_file.outputs.pg_versions) }}
|
# # POSTGRES_VERSION: ${{ fromJson(needs.get_postgres_versions_from_file.outputs.pg_versions) }}
|
||||||
POSTGRES_VERSION:
|
# POSTGRES_VERSION:
|
||||||
- 16
|
# - 16
|
||||||
# Postgres removed support for CentOS 7 in PG 16. Below block is needed to
|
# # Postgres removed support for CentOS 7 in PG 16. Below block is needed to
|
||||||
# keep the build for CentOS 7 working for PG 14 and PG 15.
|
# # keep the build for CentOS 7 working for PG 14 and PG 15.
|
||||||
# Once dependent systems drop support for Centos 7, we can remove this block.
|
# # Once dependent systems drop support for Centos 7, we can remove this block.
|
||||||
include:
|
# include:
|
||||||
# - packaging_docker_image: centos-7
|
# - packaging_docker_image: centos-7
|
||||||
# POSTGRES_VERSION: 14
|
# POSTGRES_VERSION: 14
|
||||||
# - packaging_docker_image: centos-7
|
# - packaging_docker_image: centos-7
|
||||||
|
@ -66,55 +66,55 @@ jobs:
|
||||||
# - packaging_docker_image: oraclelinux-7
|
# - packaging_docker_image: oraclelinux-7
|
||||||
# POSTGRES_VERSION: 15
|
# POSTGRES_VERSION: 15
|
||||||
|
|
||||||
container:
|
# container:
|
||||||
image: citus/packaging-test:${{ matrix.packaging_docker_image }}-pg${{ matrix.POSTGRES_VERSION }}
|
# image: ghcr.io/citusdata/packaging-test:${{ matrix.packaging_docker_image }}-pg${{ matrix.POSTGRES_VERSION }}
|
||||||
options: --user root
|
# options: --user root
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set Postgres and python parameters for rpm based distros
|
# - name: Set Postgres and python parameters for rpm based distros
|
||||||
run: |
|
# run: |
|
||||||
echo "/usr/pgsql-${{ matrix.POSTGRES_VERSION }}/bin" >> $GITHUB_PATH
|
# echo "/usr/pgsql-${{ matrix.POSTGRES_VERSION }}/bin" >> $GITHUB_PATH
|
||||||
echo "/root/.pyenv/bin:$PATH" >> $GITHUB_PATH
|
# echo "/root/.pyenv/bin:$PATH" >> $GITHUB_PATH
|
||||||
echo "PACKAGING_PYTHON_VERSION=3.8.16" >> $GITHUB_ENV
|
# echo "PACKAGING_PYTHON_VERSION=3.8.16" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Configure
|
# - name: Configure
|
||||||
run: |
|
# run: |
|
||||||
echo "Current Shell:$0"
|
# echo "Current Shell:$0"
|
||||||
echo "GCC Version: $(gcc --version)"
|
# echo "GCC Version: $(gcc --version)"
|
||||||
./configure 2>&1 | tee output.log
|
# ./configure 2>&1 | tee output.log
|
||||||
|
|
||||||
- name: Make clean
|
# - name: Make clean
|
||||||
run: |
|
# run: |
|
||||||
make clean
|
# make clean
|
||||||
|
|
||||||
- name: Make
|
# - name: Make
|
||||||
run: |
|
# run: |
|
||||||
git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
# git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
||||||
make CFLAGS="-Wno-missing-braces" -sj$(cat /proc/cpuinfo | grep "core id" | wc -l) 2>&1 | tee -a output.log
|
# make CFLAGS="-Wno-missing-braces" -sj$(cat /proc/cpuinfo | grep "core id" | wc -l) 2>&1 | tee -a output.log
|
||||||
|
|
||||||
# Check the exit code of the make command
|
# # Check the exit code of the make command
|
||||||
make_exit_code=${PIPESTATUS[0]}
|
# make_exit_code=${PIPESTATUS[0]}
|
||||||
|
|
||||||
# If the make command returned a non-zero exit code, exit with the same code
|
# # If the make command returned a non-zero exit code, exit with the same code
|
||||||
if [[ $make_exit_code -ne 0 ]]; then
|
# if [[ $make_exit_code -ne 0 ]]; then
|
||||||
echo "make command failed with exit code $make_exit_code"
|
# echo "make command failed with exit code $make_exit_code"
|
||||||
exit $make_exit_code
|
# exit $make_exit_code
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Make install
|
# - name: Make install
|
||||||
run: |
|
# run: |
|
||||||
make CFLAGS="-Wno-missing-braces" install 2>&1 | tee -a output.log
|
# make CFLAGS="-Wno-missing-braces" install 2>&1 | tee -a output.log
|
||||||
|
|
||||||
- name: Validate output
|
# - name: Validate output
|
||||||
env:
|
# env:
|
||||||
POSTGRES_VERSION: ${{ matrix.POSTGRES_VERSION }}
|
# POSTGRES_VERSION: ${{ matrix.POSTGRES_VERSION }}
|
||||||
PACKAGING_DOCKER_IMAGE: ${{ matrix.packaging_docker_image }}
|
# PACKAGING_DOCKER_IMAGE: ${{ matrix.packaging_docker_image }}
|
||||||
run: |
|
# run: |
|
||||||
echo "Postgres version: ${POSTGRES_VERSION}"
|
# echo "Postgres version: ${POSTGRES_VERSION}"
|
||||||
./.github/packaging/validate_build_output.sh "rpm"
|
# ./.github/packaging/validate_build_output.sh "rpm"
|
||||||
|
|
||||||
deb_build_tests:
|
deb_build_tests:
|
||||||
name: deb_build_tests
|
name: deb_build_tests
|
||||||
|
@ -139,7 +139,7 @@ jobs:
|
||||||
POSTGRES_VERSION: ${{ fromJson(needs.get_postgres_versions_from_file.outputs.pg_versions) }}
|
POSTGRES_VERSION: ${{ fromJson(needs.get_postgres_versions_from_file.outputs.pg_versions) }}
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: citus/packaging-test:${{ matrix.packaging_docker_image }}
|
image: ghcr.io/citusdata/packaging-test:${{ matrix.packaging_docker_image }}
|
||||||
options: --user root
|
options: --user root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue