Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/global-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down