diff --git a/.github/installpkgs.jl b/.github/installpkgs.jl new file mode 100644 index 00000000..8b6081c3 --- /dev/null +++ b/.github/installpkgs.jl @@ -0,0 +1,5 @@ +using Pkg, Dates +Pkg.Registry.update() +Pkg.instantiate() +Pkg.precompile() +Pkg.gc(collect_delay=Day(0)) diff --git a/literate.jl b/.github/literate.jl similarity index 100% rename from literate.jl rename to .github/literate.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e597e514..57c7e9cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,9 +62,7 @@ jobs: ${{ runner.os }}-julia-${{ steps.read_toml.outputs.value }}-${{ env.CACHE_NUM }}- - name: Install Julia packages if: ${{ steps.cache-julia.outputs.cache-hit != 'true' }} - run: | - julia --color=yes -e 'using Pkg; Pkg.add(["PrettyTables", "Literate"])' - julia --project=@. --color=yes -e 'using Pkg, Dates; Pkg.instantiate(); Pkg.resolve(); Pkg.precompile(); Pkg.gc(collect_delay=Day(0))' + run: julia --project=@. .github/installpkgs.jl - name: Save Julia packages uses: actions/cache/save@v3 if: ${{ steps.cache-julia.outputs.cache-hit != 'true' }} @@ -74,7 +72,7 @@ jobs: !~/.julia/registries key: ${{ steps.cache-julia.outputs.cache-primary-key }} - name: Run program - run: julia --color=yes -p ${{ env.NPROC }} literate.jl + run: julia --color=yes --project=@. -p ${{ env.NPROC }} .github/literate.jl - name: Build website run: jupyter-book build docs/ - name: Upload page artifact diff --git a/Manifest.toml b/Manifest.toml index f41e7b01..6db8dc43 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -2,7 +2,7 @@ julia_version = "1.10.0" manifest_format = "2.0" -project_hash = "7e5807e059f83e7dc9033cceb2df5b3a68479e06" +project_hash = "e8b21c1e5d769fc083d79201240ba21b18bf6a7e" [[deps.ADTypes]] git-tree-sha1 = "41c37aa88889c171f1300ceac1313c06e891d245" @@ -745,6 +745,12 @@ git-tree-sha1 = "f218fe3736ddf977e0e772bc9a586b2383da2685" uuid = "34004b35-14d8-5ef3-9330-4cdb6864b03a" version = "0.3.23" +[[deps.IOCapture]] +deps = ["Logging", "Random"] +git-tree-sha1 = "d75853a0bdbfb1ac815478bacd89cd27b550ace6" +uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89" +version = "0.2.3" + [[deps.IfElse]] git-tree-sha1 = "debdd00ffef04665ccbb3e150747a77560e8fad1" uuid = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173" @@ -1069,6 +1075,12 @@ version = "2.22.0" Pardiso = "46dd5b70-b6fb-5a00-ae2d-e8fea33afaf2" RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" +[[deps.Literate]] +deps = ["Base64", "IOCapture", "JSON", "REPL"] +git-tree-sha1 = "7cf4b8ca67b6a86a2ad7526bfe514ecd00d944f9" +uuid = "98b081ad-f1c9-55d3-8b20-4c87d4299306" +version = "2.16.0" + [[deps.LogExpFunctions]] deps = ["DocStringExtensions", "IrrationalConstants", "LinearAlgebra"] git-tree-sha1 = "7d6dd4e9212aebaeed356de34ccf262a3cd415aa" @@ -1530,9 +1542,9 @@ version = "0.6.12" [[deps.RecursiveArrayTools]] deps = ["Adapt", "ArrayInterface", "DocStringExtensions", "GPUArraysCore", "IteratorInterfaceExtensions", "LinearAlgebra", "RecipesBase", "Requires", "SparseArrays", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface", "Tables"] -git-tree-sha1 = "4da78e9b73a8d585e1c520e60d46601af9828275" +git-tree-sha1 = "27ee1c03e732c488ecce1a25f0d7da9b5d936574" uuid = "731186ca-8d62-57ce-b412-fbd966d074cd" -version = "3.3.1" +version = "3.3.3" [deps.RecursiveArrayTools.extensions] RecursiveArrayToolsFastBroadcastExt = "FastBroadcast" @@ -1872,9 +1884,9 @@ version = "1.5.0" [[deps.Symbolics]] deps = ["ArrayInterface", "Bijections", "ConstructionBase", "DataStructures", "DiffRules", "Distributions", "DocStringExtensions", "DomainSets", "DynamicPolynomials", "Groebner", "IfElse", "LaTeXStrings", "LambertW", "Latexify", "Libdl", "LinearAlgebra", "LogExpFunctions", "MacroTools", "Markdown", "NaNMath", "PrecompileTools", "RecipesBase", "Reexport", "Requires", "RuntimeGeneratedFunctions", "SciMLBase", "Setfield", "SparseArrays", "SpecialFunctions", "StaticArrays", "SymbolicIndexingInterface", "SymbolicUtils"] -git-tree-sha1 = "80e67b76699b1ec130ac60946b3d06017f58141f" +git-tree-sha1 = "280cde7b8e2100911fbab2f507df67042c297ca4" uuid = "0c5d862f-8b57-4792-8d23-62f2024744c7" -version = "5.13.0" +version = "5.14.0" [deps.Symbolics.extensions] SymbolicsSymPyExt = "SymPy" diff --git a/Project.toml b/Project.toml index f4bd63c0..ee8c000f 100644 --- a/Project.toml +++ b/Project.toml @@ -6,8 +6,10 @@ DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59" +Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" +PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"