mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 02:12:56 +00:00
Don't include Postgres binaries in neon.tgz
neon.tgz artifact in the github workflow included the contents of 'tmp_install', but that seems pointless, because the same files are included earlier already in the pg.tgz artifact.
This commit is contained in:
committed by
Heikki Linnakangas
parent
fe65d1df74
commit
a490f64a68
15
.github/actions/run-python-test-set/action.yml
vendored
15
.github/actions/run-python-test-set/action.yml
vendored
@@ -37,6 +37,12 @@ runs:
|
|||||||
name: neon-${{ runner.os }}-${{ inputs.build_type }}-${{ inputs.rust_toolchain }}-artifact
|
name: neon-${{ runner.os }}-${{ inputs.build_type }}-${{ inputs.rust_toolchain }}-artifact
|
||||||
path: ./neon-artifact/
|
path: ./neon-artifact/
|
||||||
|
|
||||||
|
- name: Get Postgres artifact for restoration
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: postgres-${{ runner.os }}-${{ inputs.build_type }}-artifact
|
||||||
|
path: ./pg-artifact/
|
||||||
|
|
||||||
- name: Extract Neon artifact
|
- name: Extract Neon artifact
|
||||||
shell: bash -ex {0}
|
shell: bash -ex {0}
|
||||||
run: |
|
run: |
|
||||||
@@ -44,6 +50,13 @@ runs:
|
|||||||
tar -xf ./neon-artifact/neon.tgz -C /tmp/neon/
|
tar -xf ./neon-artifact/neon.tgz -C /tmp/neon/
|
||||||
rm -rf ./neon-artifact/
|
rm -rf ./neon-artifact/
|
||||||
|
|
||||||
|
- name: Extract Postgres artifact
|
||||||
|
shell: bash -ex {0}
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/neon/tmp_install
|
||||||
|
tar -xf ./pg-artifact/pg.tgz -C /tmp/neon/tmp_install
|
||||||
|
rm -rf ./pg-artifact/
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: inputs.needs_postgres_source == 'true'
|
if: inputs.needs_postgres_source == 'true'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -65,7 +78,7 @@ runs:
|
|||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
env:
|
env:
|
||||||
NEON_BIN: /tmp/neon/bin
|
NEON_BIN: /tmp/neon/bin
|
||||||
POSTGRES_DISTRIB_DIR: /tmp/neon/pg_install
|
POSTGRES_DISTRIB_DIR: /tmp/neon/tmp_install
|
||||||
TEST_OUTPUT: /tmp/test_output
|
TEST_OUTPUT: /tmp/test_output
|
||||||
# this variable will be embedded in perf test report
|
# this variable will be embedded in perf test report
|
||||||
# and is needed to distinguish different environments
|
# and is needed to distinguish different environments
|
||||||
|
|||||||
3
.github/workflows/build_and_test.yml
vendored
3
.github/workflows/build_and_test.yml
vendored
@@ -179,9 +179,6 @@ jobs:
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install postgres binaries
|
|
||||||
run: cp -a tmp_install /tmp/neon/pg_install
|
|
||||||
|
|
||||||
- name: Prepare neon artifact
|
- name: Prepare neon artifact
|
||||||
run: tar -C /tmp/neon/ -czf ./neon.tgz .
|
run: tar -C /tmp/neon/ -czf ./neon.tgz .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user