Skip to content

Commit

Permalink
Full workflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Rix <[email protected]>
  • Loading branch information
obrix committed Aug 6, 2024
1 parent c056d2a commit aa56606
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
7 changes: 7 additions & 0 deletions Manifest.toml
Original file line number Diff line number Diff line change
@@ -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]
18 changes: 18 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -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"]
3 changes: 3 additions & 0 deletions install_requirements.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Pkg
Pkg.add(name="BinaryBuilder", version="0.5.8")
Pkg.add(name="CxxWrap", version="0.16.0")
File renamed without changes.
2 changes: 2 additions & 0 deletions test/print_version.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
using Powsybl
print(Powsybl.get_version_table())

0 comments on commit aa56606

Please sign in to comment.