Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[target.'cfg(target_os="linux")']
# Keep pgrx schema linker sections under fat LTO
rustflags = ["-Clink-arg=-Wl,--no-gc-sections"]

[target.'cfg(target_os="macos")']
# Postgres symbols won't be available until runtime
rustflags = ["-Clink-arg=-Wl,-undefined,dynamic_lookup"]
39 changes: 7 additions & 32 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
name: Check

# Temporarily keep CI manual while the local package builds are validated.
on:
pull_request:
paths:
- ".cargo"
- ".github/workflows/check.yml"
- "assets/**"
- "src/**"
- "tests/**"
- "tools/**"
- ".taplo.toml"
- ".typos.toml"
- "Cargo.lock"
- "Cargo.toml"
- "pg_tokenizer.control"
push:
paths:
- ".cargo"
- ".github/workflows/check.yml"
- "assets/**"
- "src/**"
- "tests/**"
- ".taplo.toml"
- ".typos.toml"
- "Cargo.lock"
- "Cargo.toml"
- "pg_tokenizer.control"
merge_group:
workflow_dispatch:

concurrency:
Expand All @@ -38,7 +13,7 @@ env:
RUST_BACKTRACE: 1
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
RUSTFLAGS: "-Dwarnings"
RUSTFLAGS: "-Dwarnings -Clink-arg=-Wl,--no-gc-sections"

jobs:
style:
Expand Down Expand Up @@ -73,21 +48,21 @@ jobs:
lint:
strategy:
matrix:
version: ["13", "14", "15", "16", "17", "18"]
version: ["14", "15", "16", "17", "18"]
arch: ["x86_64", "aarch64"]
runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Environment
run: ./tools/setup.sh ${{ matrix.version }}
- name: Set up Sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Set up Environment
run: ./tools/setup.sh ${{ matrix.version }}
- name: Clippy
run: cargo clippy --features pg${{ matrix.version }}
run: cargo clippy --locked --features pg${{ matrix.version }}
- name: Unit Test
run: cargo test --no-fail-fast --features pg${{ matrix.version }}
run: cargo test --locked --no-fail-fast --features pg${{ matrix.version }}
- name: Install
run: cargo pgrx install --features "pg${{ matrix.version }} lindera-ipadic" --release --sudo
- name: Integration Test
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release

# Temporarily keep publishing manual while the local package builds are validated.
on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
Expand Down Expand Up @@ -46,7 +45,9 @@ jobs:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: "-Dwarnings"
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
RUSTFLAGS: "-Dwarnings -Clink-arg=-Wl,--no-gc-sections"
SEMVER: ${{ needs.semver.outputs.SEMVER }}
VERSION: ${{ matrix.version }}
ARCH: ${{ matrix.arch }}
Expand All @@ -55,6 +56,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Set up Environment
run: ./tools/setup.sh ${{ matrix.version }}
- name: Build
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ CLAUDE.md
/target*
*.iml
**/*.rs.bk
Cargo.lock
.vscode/
.gdb_history
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extend-ignore-re = [
[default.extend-words]
als = "als"
ist = "ist"
tocken = "tocken"

[files]
extend-exclude = ["assets/**/*", "tests/sqllogictest/*.slt"]
Loading