diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 44187ce..17b3ca9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -59,7 +59,7 @@ jobs: lint: strategy: matrix: - version: ["13", "14", "15", "16", "17"] + version: ["13", "14", "15", "16", "17", "18"] arch: ["x86_64", "aarch64"] runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87dad6f..dc961b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: needs: ["semver"] strategy: matrix: - version: ["14", "15", "16", "17"] + version: ["14", "15", "16", "17", "18"] arch: ["x86_64", "aarch64"] runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }} @@ -73,7 +73,7 @@ jobs: needs: ["semver", "build"] strategy: matrix: - version: ["14", "15", "16", "17"] + version: ["14", "15", "16", "17", "18"] env: SEMVER: ${{ needs.semver.outputs.SEMVER }} steps: diff --git a/Cargo.toml b/Cargo.toml index 239a834..113d556 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ pg14 = ["pgrx/pg14", "pgrx-tests/pg14"] pg15 = ["pgrx/pg15", "pgrx-tests/pg15"] pg16 = ["pgrx/pg16", "pgrx-tests/pg16"] pg17 = ["pgrx/pg17", "pgrx-tests/pg17"] +pg18 = ["pgrx/pg18", "pgrx-tests/pg18"] pg_test = [] lindera-ipadic = ["lindera/ipadic"] lindera-ipadic-neologd = ["lindera/ipadic-neologd"] @@ -28,7 +29,7 @@ anyhow = "1.0.97" dashmap = "6.1.0" jieba-rs = "0.7.2" lindera = "0.42.2" -pgrx = "=0.14.1" +pgrx = "=0.16.1" regex = "1.11.1" rust-stemmers = { git = "https://github.com/tensorchord/rust-stemmers.git", rev = "51696378e352688b7ffd4fface615370ff5e8768" } serde = { version = "1.0.218", features = ["derive"] } @@ -41,7 +42,7 @@ unicode-segmentation = "1.12.0" validator = { version = "0.20.0", features = ["derive"] } [dev-dependencies] -pgrx-tests = "=0.14.1" +pgrx-tests = "=0.16.1" [profile.release] opt-level = 3 diff --git a/src/lib.rs b/src/lib.rs index e868554..d8a7ed3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,8 @@ compile_error!("Target is not supported."); feature = "pg14", feature = "pg15", feature = "pg16", - feature = "pg17" + feature = "pg17", + feature = "pg18" )))] compile_error!("PostgreSQL version must be selected."); diff --git a/tools/setup.sh b/tools/setup.sh index bb4c584..1f0ea79 100755 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -19,7 +19,7 @@ sudo -iu postgres createdb -O $USER $USER sudo -iu postgres psql -c 'ALTER SYSTEM SET shared_preload_libraries = "pg_tokenizer.so"' sudo systemctl stop postgresql -curl -fsSL https://github.com/tensorchord/pgrx/releases/download/v0.14.1/cargo-pgrx-v0.14.1-$(uname -m)-unknown-linux-gnu.tar.gz | tar -xOzf - ./cargo-pgrx | install -m 755 /dev/stdin /usr/local/bin/cargo-pgrx +curl -fsSL https://github.com/tensorchord/pgrx/releases/download/v0.16.1/cargo-pgrx-v0.16.1-$(uname -m)-unknown-linux-gnu.tar.gz | tar -xOzf - ./cargo-pgrx | install -m 755 /dev/stdin /usr/local/bin/cargo-pgrx cargo pgrx init --pg${version}=$(which pg_config) curl -fsSL https://github.com/risinglightdb/sqllogictest-rs/releases/download/v0.26.4/sqllogictest-bin-v0.26.4-$(uname -m)-unknown-linux-musl.tar.gz | tar -xOzf - ./sqllogictest | install -m 755 /dev/stdin /usr/local/bin/sqllogictest