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
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -23,7 +23,7 @@ jobs:
name: Clippy lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -46,21 +46,34 @@ jobs:
os: ubuntu-latest
rust: nightly
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build and run tests
run: cargo test --all-features

cleanbuild-linux-nix:
name: Run clean build on Linux
runs-on: ubuntu-latest
needs: [test]
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- uses: cachix/install-nix-action@v31
- run: nix develop --command cargo test

integration:
name: Integration tests
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
]);
buildInputs = with pkgs; [
llvmPackages.libclang
libpq
duckdb.dev
duckdb.lib
libpq.dev
libpq.out
];
in
{
Expand All @@ -48,12 +47,11 @@
postgresql_18.out
];

LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
buildInputs = buildInputs;

shellHook = ''
export CC=clang
export CXX=clang++
export DUCKDB_LIB_DIR="${pkgs.duckdb.lib}/lib"
export DUCKDB_INCLUDE_DIR="${pkgs.duckdb.dev}/include"
'';
};
});
Expand Down
Loading