Skip to content

Commit 16f58bd

Browse files
committed
2 parents 24097c7 + 22d47e7 commit 16f58bd

File tree

5 files changed

+23
-39
lines changed

5 files changed

+23
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
DATADEPS_ALWAYS_ACCEPT: 1
13-
JIVE_PROCS: 2
13+
JIVE_PROCS: 1
1414

1515
jobs:
1616
build:

.travis.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,21 @@ os:
55

66
dist: bionic
77

8-
98
julia:
109
- 1.5
1110

1211
env:
13-
DATADEPS_ALWAYS_ACCEPT=1 JIVE_PROCS=2
12+
DATADEPS_ALWAYS_ACCEPT=1 JIVE_PROCS=1
1413

1514
jobs:
1615
include:
17-
1816
- stage: "Unit Tests"
1917
script:
2018
- julia --project -e 'using Pkg; Pkg.develop(PackageSpec(name="LogicCircuits")); Pkg.instantiate(); Pkg.build();'
21-
# - julia --project=test/ -e 'using Pkg; Pkg.instantiate(); Pkg.build();'
22-
- julia --project --check-bounds=yes --depwarn=error -e 'import Pkg; Pkg.test(; coverage=true)'
19+
- julia --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
2320
after_success:
2421
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'
2522

26-
# - stage: "Documentation"
27-
# addons:
28-
# apt:
29-
# packages:
30-
# - poppler-utils
31-
# - pdf2svg
32-
# - texlive-latex-base
33-
# - texlive-binaries
34-
# - texlive-pictures
35-
# - texlive-latex-extra
36-
# - texlive-luatex
37-
# - texlive-xetex
38-
# - ghostscript-x
39-
# - texlive-xetex
40-
# - latexmk
41-
# - libgconf2-4
42-
# - texlive-fonts-recommended
43-
# - texlive-fonts-extra
44-
# - fonts-lmodern
45-
46-
# before_install:
47-
# - luatex -v
48-
# - pdflatex -v
49-
# script:
50-
# - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(name="LogicCircuits")); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
51-
# - julia --project=docs/ docs/make.jl
52-
# after_success: skip
53-
5423
notifications:
5524
email: false
5625
slack:

Artifacts.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ lazy = true
77
sha256 = "5d66a95037e44010502ad28ec8d6dc26f46947dc88e962633b7de54e614b1a47"
88

99
[circuit_model_zoo]
10-
git-tree-sha1 = "6a80001f3f4f9c41eb9ce4b63caf9555e08265de"
10+
git-tree-sha1 = "49e3a134c68acbcd87075dee811aff997c29cad2"
1111
lazy = true
1212

1313
[[circuit_model_zoo.download]]
14-
url = "https://github.com/UCLA-StarAI/Circuit-Model-Zoo/archive/v0.1.2.tar.gz"
15-
sha256 = "e9710a8edd63a7f51dcb10b076f331e71eb5f34e0c878d8687f4e86b9df3249a"
16-
14+
url = "https://github.com/UCLA-StarAI/Circuit-Model-Zoo/archive/v0.1.3.tar.gz"
15+
sha256 = "537d4d414b8955e8f9b64e4e3aaf5382889a6901c5e24aa9bc8bc2fbea51dc4f"

README_DEV.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,17 @@ Only do this for when the repo is in stable position, and we have decent amount
4949
- The web interface seems to be the easiest. Follow the instructions in the generated pull request and make sure there is no errors. For example [this pull request](https://github.com/JuliaRegistries/General/pull/15350).
5050
3. Github Release. TagBot is enabled for this repo, so after the registrator merges the pull request, TagBot automatically does a github release in sync with the registrar's new version.
5151
- Note: TagBot would automatically include all the closed PRs and issues since the previous version in the release note, if you want to exclude some of them, refer to [Julia TagBot docs](https://github.com/JuliaRegistries/TagBot).
52+
53+
54+
## Updating Artifacts
55+
56+
The example is for Circuit Model Zoo, but should work for others:
57+
58+
1. Push new updates to [UCLA-StarAI/Circuit-Model-Zoo](https://github.com/UCLA-StarAI/Circuit-Model-Zoo)
59+
2. Do a [new release](https://github.com/UCLA-StarAI/Circuit-Model-Zoo/releases).
60+
3. Update the `LogicCircuits.jl`'s `Artifact.toml` file with new git tag and hash. Example commit can be found [here](https://github.com/Juice-jl/LogicCircuits.jl/commit/1cd3fda02fa7bd82d1fa02898ee404edce0d7b14).
61+
4. Do the same for `ProbabilisticCircuits.jl`'s `Artifact.toml` file. Example commit [here](https://github.com/Juice-jl/ProbabilisticCircuits.jl/commit/da7d3678b5f2254e60229632f74cc619505e2b2d).
62+
63+
### Question: How to get the hashes:
64+
1. `git-tree-sha1`. I thought it was the commit hash but that did not work. Instead can run the tests and then it gives you error with correct hash and you can update the hash based on that.
65+
2. `sha256`. Download the release file '*.tar.gz' and compute its SHA256 with any method you like and the replace the value.

src/LoadSave/circuit_loaders.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ zoo_lc(name, num_classes) =
1414
load_logistic_circuit(zoo_lc_file(name), num_classes)
1515

1616
zoo_clt_file(name) =
17-
artifact"circuit_model_zoo" * "/Circuit-Model-Zoo-0.1.2/clts/$name"
17+
# artifact"circuit_model_zoo/" * "Circuit-Model-Zoo-0.1.3" * "/clts/$name"
18+
artifact"circuit_model_zoo" * LogicCircuits.LoadSave.zoo_version * "/clts/$name"
19+
1820

1921
zoo_clt(name) =
2022
parse_clt(zoo_clt_file(name))

0 commit comments

Comments
 (0)