Skip to content

Add pixi configuration for local dev #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:

jobs:
default:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: prefix-dev/[email protected]
with:
pixi-version: v0.38.0
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}

- run: pixi run ci

- run: "./build/fulgor | grep 'Fulgor: a colored de Bruijn graph index'"
name: check
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -2,4 +2,6 @@
build
debug_build
test_data
.idea
.idea

.pixi
3,327 changes: 3,327 additions & 0 deletions pixi.lock

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[project]
authors = [
"Giulio Ermanno Pibiri <jeis90@gmail.com>",
]
channels = [
"conda-forge"
]
description = "Fulgor is a colored de Bruijn graph index for large-scale matching and color queries, powered by SSHash and GGCAT"
name = "fulgor"
platforms = [
"linux-64",
"osx-64",
"osx-arm64",
]
version = "3.0.0"

[tasks]
clean = "rm -rf build/"
ci = { depends-on = ["submodules", "configure", "build"] }
build = { cmd = "make -j", cwd = "build", depends-on = ["submodules", "configure"] }
configure = { cmd = "mkdir -p build && cd build && cmake ..", depends-on = ["submodules"] }
submodules = "git submodule update --init --recursive"

debug = { depends-on = ["submodules", "configure-debug", "build-debug"] }
build-debug = { cmd = "make -j", cwd = "debug_build", depends-on = ["submodules", "configure-debug"] }
configure-debug = { cmd = "mkdir -p debug_build && cd debug_build && cmake .. -D CMAKE_BUILD_TYPE=Debug -D FULGOR_USE_SANITIZERS=On", depends-on = ["submodules"] }

[dependencies]
cxx-compiler = ">=1.8.0,<2"
cmake = ">=3.31.1,<4"
rust = ">=1.82.0,<1.83"
make = ">=4.4.1,<5"
zlib = ">=1.3.1,<2"