@@ -13,20 +13,41 @@ jobs:
1313 contents : write
1414 runs-on : ubuntu-latest
1515 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
1831 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
2137 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
2649 env :
2750 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2851 DOCUMENTER_DEBUG : true
2952 run : |
30- current_path=${{ github.workspace }}
31- export JULIA_CONDAPKG_ENV="$current_path/rms_env"
3253 julia --color=yes --project=docs docs/make.jl
0 commit comments