forked from crillab/d4v2
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2e90ad
commit e64388f
Showing
5 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Portable | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
Build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- triple: x86_64-unknown-linux-gnu | ||
runner: ubuntu-latest | ||
runs-on: ${{ matrix.target.runner }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Nix | ||
uses: DeterminateSystems/nix-installer-action@v10 | ||
- name: Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v4 | ||
- name: Bundle | ||
run: nix bundle --bundler github:DavHau/nix-portable -o bundle .#all | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: d4-${{ matrix.target.triple }}-portable | ||
path: bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# d4 | ||
|
||
This is a portable version of d4. | ||
The project is licensed under the LGPL-2.1 and the source can be found at https://github.com/SoftVarE-Group/d4v2 | ||
|
||
## Dependencies | ||
|
||
In this version, all dependencies and the Nix package manager are bundled with d4 in a self-extracting archive. | ||
Other than Git, there are no dependencies. | ||
When Git is not found, the bundled Nix will fetch it automatically. | ||
|
||
The self-extracting archive is generated using https://github.com/DavHau/nix-portable and will create the directory `$HOME/.nix-portable`. | ||
This can be overwritten by the `NP_LOCATION` environment variable which defaults to `$HOME`. | ||
|
||
## Usage | ||
|
||
The binary `d4` is inside `bin`. | ||
To show the help message, use: | ||
|
||
``` | ||
d4 --help | ||
``` | ||
|
||
### d-DNNF compilation | ||
|
||
``` | ||
d4 --input /path/to/input.cnf --method ddnnf-compiler --dump-ddnnf /path/to/output.ddnnf | ||
``` | ||
|
||
... will take a CNF from `/path/to/input.cnf`, compile it into a d-DNNF and write it to `/path/to/output.ddnnf`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters