Skip to content

Commit

Permalink
Try to install miniconda
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Feb 4, 2024
1 parent c8d9fbe commit 195f0ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
echo "r_minor_version=$R_MINOR_VERSION" >> $GITHUB_OUTPUT
- name: setup-r-mac-12
- name: setup-r-mac-13
if: ${{matrix.os == 'macos-13'}}
run: |
R_LIBS_USER=${GITHUB_WORKSPACE}/R_LIBS
Expand All @@ -109,6 +109,7 @@ jobs:
echo "R=R" >> $GITHUB_ENV
- name: install-test-config
shell: bash
run: |
Expand Down Expand Up @@ -147,6 +148,10 @@ jobs:
- name: mac-build-package
if: ${{runner.os == 'macOS'}}
run: |
Rscript -e "remotes::install_github('rstudio/reticulate')"
Rscript -e "reticulate::install_miniconda()"
echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
Rscript -e "reticulate::conda_create('r-reticulate', packages = c('python==3.10'))"
R CMD build ./
R CMD INSTALL --build ${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.gz --library=$R_LIBS_USER --no-test-load
Expand Down

0 comments on commit 195f0ce

Please sign in to comment.