@@ -13,20 +13,41 @@ jobs:
13
13
contents : write
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v2
17
- - uses : julia-actions/setup-julia@latest
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Setup Miniforge Python 3.9
19
+ uses : conda-incubator/setup-miniconda@v3
20
+ with :
21
+ miniforge-variant : Miniforge3
22
+ miniforge-version : latest
23
+ python-version : " 3.9"
24
+ activate-environment : rms_env
25
+ auto-update-conda : true
26
+ show-channel-urls : true
27
+ conda-remove-defaults : " true"
28
+
29
+ - name : Setup Juliaup
30
+ uses : julia-actions/install-juliaup@v2
18
31
with :
19
- version : ' 1.10'
20
- - name : Install dependencies
32
+ channel : ' 1.9'
33
+
34
+ - uses : julia-actions/cache@v2
35
+
36
+ - name : Set some env vars
21
37
run : |
22
- current_path=${{ github.workspace }}
23
- export JULIA_CONDAPKG_ENV="$current_path/rms_env"
24
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.build("ReactionMechanismSimulator");'
25
- - name : Build and deploy
38
+ # https://juliapy.github.io/PythonCall.jl/stable/pythoncall/#If-you-already-have-Python-and-required-Python-packages-installed
39
+ echo "JULIA_CONDAPKG_BACKEND=Current" >> $GITHUB_ENV
40
+ echo "JULIA_PYTHONCALL_EXE=$CONDA_PREFIX/bin/python" >> $GITHUB_ENV
41
+
42
+ - uses : julia-actions/julia-buildpkg@v1
43
+
44
+ - name : Build
45
+ run : |
46
+ julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
47
+
48
+ - name : Build and deploy Documentation
26
49
env :
27
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
28
51
DOCUMENTER_DEBUG : true
29
52
run : |
30
- current_path=${{ github.workspace }}
31
- export JULIA_CONDAPKG_ENV="$current_path/rms_env"
32
53
julia --color=yes --project=docs docs/make.jl
0 commit comments