Skip to content
Closed
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
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
- name: Run tests
run: just test

build-extension:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup just
uses: extractions/setup-just@v1
- name: Build native extension
run: just build-extension

nix:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,3 +51,15 @@ jobs:
experimental-features = nix-command flakes
- name: Run tests via Nix
run: nix develop -c just test

nix-build-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-24.05
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build extension via Nix
run: nix develop -c just build-extension
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
rustc
cargo
libiconv # required as a dependency when building the rb-sys Rust crate

# For build automation
libclang # required for building the rb-sys-env build tools
just
git-lfs
];
Expand Down
Loading