-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support PostgreSQL 12 to 16; fix bug that won't break Korean Hangul i…
…nto 2-gram (#6) * Support PostgreSQL 12 to 16; fix bug that won't break Korean Hangul into 2-gram Close #4 Close #3 Co-authored-by: Jimmy Huang <[email protected]>
- Loading branch information
1 parent
77e7ec6
commit a627574
Showing
8 changed files
with
269 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
name: Build pg_cjk_parser for postgres 12 and 16 | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build_pg12: | ||
runs-on: ubuntu-latest | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver-opts: network=host | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
file: Dockerfile_pg12 | ||
tags: localhost:5000/postgres:12-dev | ||
- | ||
name: Run bash script to verify image postgres:12-dev | ||
run: docker pull localhost:5000/postgres:12-dev && docker tag localhost:5000/postgres:12-dev postgres:12-dev && chmod +x ./postgres-12.sh && ./postgres-12.sh | ||
|
||
build_pg16: | ||
runs-on: ubuntu-latest | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver-opts: network=host | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
file: Dockerfile_pg16 | ||
tags: localhost:5000/postgres:16-dev | ||
- | ||
name: Run bash script to verify image postgres:16-dev | ||
run: docker pull localhost:5000/postgres:16-dev && docker tag localhost:5000/postgres:16-dev postgres:16-dev && chmod +x ./postgres-16.sh && ./postgres-16.sh | ||
|
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,14 @@ | ||
FROM postgres:16 | ||
RUN apt-get update | ||
RUN apt-get install -y postgresql-server-dev-16 | ||
RUN apt-get install -y gcc make | ||
RUN apt-get install -y icu-devtools libicu-dev | ||
|
||
RUN mkdir -p /root/parser | ||
WORKDIR /root/parser | ||
COPY pg_cjk_parser.c /root/parser/ | ||
COPY pg_cjk_parser.control /root/parser/ | ||
COPY Makefile /root/parser/ | ||
COPY pg_cjk_parser--0.0.1.sql /root/parser/ | ||
COPY zht2zhs.h /root/parser/ | ||
RUN make clean && make install |
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
Oops, something went wrong.