Skip to content

Commit

Permalink
Merge branch 'main' into refactor/faster-ivf-pq
Browse files Browse the repository at this point in the history
Signed-off-by: whateveraname <12011319@mail.sustech.edu.cn>
  • Loading branch information
whateveraname committed Feb 21, 2024
2 parents a32f0eb + 42fa583 commit 583b345
Show file tree
Hide file tree
Showing 129 changed files with 4,441 additions and 3,412 deletions.
74 changes: 57 additions & 17 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
strategy:
matrix:
include:
- { version: 12, os: "ubuntu-latest" }
- { version: 13, os: "ubuntu-latest" }
- { version: 14, os: "ubuntu-latest" }
- { version: 15, os: "ubuntu-latest" }
- { version: 16, os: "ubuntu-latest" }
Expand All @@ -56,19 +54,67 @@ jobs:
VERSION: ${{ matrix.version }}
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v3
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
id: cache
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ matrix.os }}-pg${{ matrix.version }}-${{ hashFiles('./Cargo.lock') }}
restore-keys: cargo-${{ matrix.os }}-pg${{ matrix.version }}
- uses: mozilla-actions/sccache-action@v0.0.3
key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.os }}-${{ hashFiles('./Cargo.lock') }}
- uses: mozilla-actions/sccache-action@v0.0.4
- name: Setup
shell: bash
run: ./scripts/ci_setup.sh
run: |
./scripts/ci_setup.sh
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall sqllogictest-bin -y --force
cargo install cargo-pgrx@$(grep 'pgrx = {' Cargo.toml | cut -d '"' -f 2 | head -n 1) --debug
cargo pgrx init --pg$VERSION=$(which pg_config)
- name: Install release
run: ./scripts/ci_install.sh
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Test
run: ./tests/tests.sh
- uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit }}
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.os }}-${{ hashFiles('./Cargo.lock') }}
debug_check:
strategy:
matrix:
include:
- { version: 14, os: "ubuntu-latest" }
- { version: 15, os: "ubuntu-latest" }
- { version: 16, os: "ubuntu-latest" }
runs-on: ${{ matrix.os }}
env:
VERSION: ${{ matrix.version }}
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
id: cache
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.os }}-${{ hashFiles('./Cargo.lock') }}
- uses: mozilla-actions/sccache-action@v0.0.4
- name: Setup
shell: bash
run: |
./scripts/ci_setup.sh
cargo install cargo-pgrx@$(grep 'pgrx = {' Cargo.toml | cut -d '"' -f 2 | head -n 1) --debug
cargo pgrx init --pg$VERSION=$(which pg_config)
- name: Format check
run: cargo fmt --check
- name: Semantic check
Expand All @@ -82,17 +128,11 @@ jobs:
- name: Test
run: |
cargo test --all --no-fail-fast --no-default-features --features "pg${{ matrix.version }} pg_test" --target x86_64-unknown-linux-gnu -- --nocapture
- name: Install release
run: ./scripts/ci_install.sh
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Test 2
run: ./tests/tests.sh
- uses: actions/cache/save@v3
- uses: actions/cache/save@v4
if: ${{ !steps.cache.outputs.cache-hit }}
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ matrix.os }}-pg${{ matrix.version }}-${{ hashFiles('./Cargo.lock') }}
key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.os }}-${{ hashFiles('./Cargo.lock') }}
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ jobs:
run: |
sed -i "s/@CARGO_VERSION@/${{ needs.semver.outputs.version }}/g" ./vectors.control
cat ./vectors.control
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-pg${{ matrix.version }}-${{ hashFiles('./Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-pg${{ matrix.version }}
- uses: mozilla-actions/sccache-action@v0.0.3
- name: Prepare
run: |
Expand Down
Loading

0 comments on commit 583b345

Please sign in to comment.