From aa5660647bd4d1cbe03af9492100d73583742c95 Mon Sep 17 00:00:00 2001 From: Bertrand Rix Date: Tue, 6 Aug 2024 16:57:45 +0200 Subject: [PATCH] Full workflow. Signed-off-by: Bertrand Rix --- .github/workflows/dev-ci.yml | 19 +++++++++++++------ Manifest.toml | 7 +++++++ Project.toml | 18 ++++++++++++++++++ install_requirements.jl | 3 +++ powsybl.jl => src/Powsybl.jl | 0 test/print_version.jl | 2 ++ 6 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 Manifest.toml create mode 100644 Project.toml create mode 100644 install_requirements.jl rename powsybl.jl => src/Powsybl.jl (100%) create mode 100644 test/print_version.jl diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index b33beae..20f40d3 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -14,7 +14,6 @@ jobs: strategy: matrix: version: - - '1.9' - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. os: - ubuntu-latest @@ -30,10 +29,18 @@ jobs: with: version: '1.10' - - name: Build + - name: Install requirements + run: | + julia install_requirements.jl + + - name: Build and install Powsybl_jll run: | - julia -e ' - import Pkg - Pkg.add("BinaryBuilder") - Pkg.add("CxxWrap")' julia build_local.jl --verbose + + - name: Install Powsybl package + run: | + eval "julia -e 'using Pkg; Pkg.REPLMode.PRINTED_REPL_WARNING[] = true; pkg\"dev .\"'" + + - name: Test + run: | + julia test/print_version.jl \ No newline at end of file diff --git a/Manifest.toml b/Manifest.toml new file mode 100644 index 0000000..53f18dd --- /dev/null +++ b/Manifest.toml @@ -0,0 +1,7 @@ +# This file is machine-generated - editing it directly is not advised + +julia_version = "1.10.4" +manifest_format = "2.0" +project_hash = "c9f132592aaaf54261a2034f727dd79ff8b83045" + +[deps] diff --git a/Project.toml b/Project.toml new file mode 100644 index 0000000..0e891bd --- /dev/null +++ b/Project.toml @@ -0,0 +1,18 @@ +name = "Powsybl" +uuid = "cc5d7637-2d3a-48eb-b6d4-9415154f8200" +authors = ["Bertrand Rix"] +version = "0.1" + +[deps] +CxxWrap = "1f15a43c-97ca-5a2a-ae31-89f07a497df4" +Powsybl_jll = "b8c81e45-bfcc-5af0-87df-fd7619bc5515" + +[compat] +julia = "1.6.7" +CxxWrap = "0.16.0" + +[extras] +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["Test"] diff --git a/install_requirements.jl b/install_requirements.jl new file mode 100644 index 0000000..8f65c20 --- /dev/null +++ b/install_requirements.jl @@ -0,0 +1,3 @@ +import Pkg +Pkg.add(name="BinaryBuilder", version="0.5.8") +Pkg.add(name="CxxWrap", version="0.16.0") \ No newline at end of file diff --git a/powsybl.jl b/src/Powsybl.jl similarity index 100% rename from powsybl.jl rename to src/Powsybl.jl diff --git a/test/print_version.jl b/test/print_version.jl new file mode 100644 index 0000000..9c8ac00 --- /dev/null +++ b/test/print_version.jl @@ -0,0 +1,2 @@ +using Powsybl +print(Powsybl.get_version_table()) \ No newline at end of file