Skip to content
Open
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
5 changes: 5 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ jobs:
-L \
-o ./imgTarball \
'.#ociImg'
- run: |
nix build \
-L \
-o ./imgTarball \
'.#ociImgSppl'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ pom.xml.asc
/cljs-test-runner-out/
/.direnv/
/.shadow-cljs/

result
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The command-line application currently supports GenSQL-strict and GenSQL-permiss
If you would like to use `GenSQL.query` to query SPPL models you will need to ensure that SPPL is on the classpath, and that [libpython-clj](https://github.com/clj-python/libpython-clj) can find a Python where SPPL is installed. The easiest way to accomplish this is to use [Nix](https://nixos.org/):

```shell
nix develop github:OpenGen/GenSQL.gpm.sppl -c clj -Sdeps '{:deps {io.github.OpenGen/GenSQL.gpm.sppl {:git/sha "718de40878766bb8d08acc2b429a76ed662a1352"}}}' -M -m gensql.query.main --help
nix develop '.#sppl' --command clj -M:query-sppl --help
```

### Clojure interface
Expand Down Expand Up @@ -150,7 +150,18 @@ If you forget, a CI job will check it for you when you make a pull request.

```shell
nix build '.#uber' -o gensql.jar
# or
nix build '.#uberGpmSppl' -o gensql-sppl.jar
```

#### Building an OCI image (docker container)

```shell
nix build '.#ociImg' -o gensql.tgz
# or
nix build '.#ociImgSppl' -o gensql-sppl.tgz
```


[codecov-url]: https://codecov.io/github/OpenGen/GenSQL.query
[codecov]: https://img.shields.io/codecov/c/github/OpenGen/GenSQL.query/main.svg?maxAge=3600
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(def uber-file (format "target/%s-%s-standalone.jar" (name lib) version))

;; delay to defer side effects (artifact downloads)
(def basis (delay (build/create-basis {:project "deps.edn"})))
(def basis (delay (build/create-basis {:aliases [ :query-sppl ]})))

;; clean build artifacts (excludes test artifacts)
(defn clean [_]
Expand Down
Loading