diff --git a/.github/workflows/global-env.yml b/.github/workflows/global-env.yml index db86f7d..2782b25 100644 --- a/.github/workflows/global-env.yml +++ b/.github/workflows/global-env.yml @@ -22,6 +22,10 @@ jobs: /opt/R /usr/local/bin/R /usr/local/bin/Rscript + paths-julia: | + Manifest.toml + Project.toml + run: | touch activate_env.sh touch paths.sh @@ -51,6 +55,11 @@ jobs: ln -s $GITHUB_WORKSPACE/renv /home/runner/work/_temp echo "sudo apt-get update -y && sudo apt-get install -y qpdf devscripts ghostscript libblas3 liblapack3" >> activate_env.sh fi + if [[ -f Project.toml ]]; then + echo "julia=true" >> $GITHUB_OUTPUT + echo "${{ env.paths-julia }}" >> paths.sh + cat Project.toml >> tohash.txt + fi cachepath=$(jq -crRs '@json' <<< "$(cat paths.sh)") echo "cache-path=$cachepath" >> $GITHUB_OUTPUT @@ -73,9 +82,19 @@ jobs: if: steps.check-cache.outputs.cache-hit != 'true' && steps.check-env-files.outputs.r == 'true' uses: r-lib/actions/setup-r@v2 with: - r-version: '4.5.0' + r-version: '4.5.1' Ncpus: 2 + - name: Set up Julia + if: steps.check-env-files.outputs.julia == 'true' + uses: julia-actions/setup-julia@v2 + with: + version: '1.11' + + - name: Install Julia Dependencies (no cache) + if: steps.check-env-files.outputs.julia == 'true' + uses: julia-actions/julia-buildpkg@v1 + - name: install any manual dependencies from setup-env-ci.sh if: steps.check-cache.outputs.cache-hit != 'true' run: |