-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jason Teng <[email protected]>
- Loading branch information
Jason Teng
committed
Oct 31, 2024
1 parent
d47d57d
commit dd7c4e8
Showing
15 changed files
with
109 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: 'Setup Base Version' | ||
inputs: | ||
engine_branch: | ||
description: "Engine Branch" | ||
required: true | ||
extension_branch: | ||
description: "Extension Branch" | ||
required: true | ||
pg_new_dir: | ||
description: "Install new version in this directory" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build Modified Postgres using latest version | ||
id: build-modified-postgres-new | ||
if: always() | ||
uses: ./.github/composite-actions/build-modified-postgres | ||
with: | ||
engine_branch: ${{ inputs.engine_branch }} | ||
install_dir: ${{ inputs.pg_new_dir }} | ||
|
||
- name: Copy ANTLR | ||
id: copy-antlr | ||
if: always() && steps.build-modified-postgres-new.outcome == 'success' | ||
run: cp "/usr/local/lib/libantlr4-runtime.so.4.13.2" ~/${{ inputs.pg_new_dir }}/lib/ | ||
shell: bash | ||
|
||
- name: Build Extensions | ||
id: build-extensions-new | ||
if: always() && steps.copy-antlr.outcome == 'success' | ||
uses: ./.github/composite-actions/build-extensions | ||
with: | ||
install_dir: ${{ inputs.pg_new_dir }} | ||
extension_branch: ${{ inputs.extension_branch }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Build tds_fdw Extension | ||
id: build-tds_fdw-extension | ||
if: always() && steps.build-extensions-new.outcome == 'success' | ||
uses: ./.github/composite-actions/build-tds_fdw-extension | ||
with: | ||
install_dir: ${{ inputs.pg_new_dir }} | ||
|
||
- name: Build vector Extension | ||
id: build-vector-extension | ||
if: always() && steps.build-tds_fdw-extension.outcome == 'success' | ||
uses: ./.github/composite-actions/build-vector-extension | ||
with: | ||
install_dir: ${{ inputs.pg_new_dir }} | ||
|
||
- name: Build PostGIS Extension | ||
id: build-postgis-extension | ||
if: always() && steps.build-vector-extension.outcome == 'success' | ||
uses: ./.github/composite-actions/build-postgis-extension | ||
with: | ||
install_dir: ${{ inputs.pg_new_dir }} | ||
|
||
- name: Setup new data directory | ||
id: setup-new-datadir | ||
if: always() && steps.build-postgis-extension.outcome == 'success' | ||
run: | | ||
cd ~ | ||
~/${{ inputs.pg_new_dir }}/bin/initdb -D ~/${{ inputs.pg_new_dir }}/data | ||
cd ~/${{ inputs.pg_new_dir }}/data | ||
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" postgresql.conf | ||
sudo sed -i "s/#shared_preload_libraries = ''/shared_preload_libraries = 'babelfishpg_tds, pg_stat_statements'/g" postgresql.conf | ||
ipaddress=$(ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}') | ||
# Allow only runner to have trust authentication, all other users must provide a password | ||
{ | ||
sudo echo "local all runner trust" | ||
sudo echo "local all all md5" | ||
sudo echo "host all runner 127.0.0.1/32 trust" | ||
sudo echo "host all runner $ipaddress/32 trust" | ||
sudo echo "host all all 0.0.0.0/0 md5" | ||
sudo echo "host all all ::/0 md5" | ||
} > pg_hba.conf | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.04 MB
contrib/babelfishpg_tsql/antlr/thirdparty/antlr/antlr-4.13.2-complete.jar
Binary file not shown.
Binary file removed
BIN
-3.35 MB
contrib/babelfishpg_tsql/antlr/thirdparty/antlr/antlr-4.9.3-complete.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters