Skip to content

Commit

Permalink
Update mac_r.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidycliao committed Aug 19, 2024
1 parent 89f4f0f commit edb38ab
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/mac_r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ jobs:
- name: Install gcc (includes gfortran)
run: brew install gcc

- name: Locate gfortran
run: which gfortran

- name: Set FC environment variable
- name: Ensure gfortran is in PATH
run: |
export FC=$(which gfortran)
echo "FC=$FC" >> $GITHUB_ENV
shell: bash
echo "/opt/homebrew/bin" >> $GITHUB_PATH
echo "/opt/homebrew/opt/gcc/bin" >> $GITHUB_PATH
- name: Verify gfortran installation
run: which gfortran

- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
Expand All @@ -60,7 +59,7 @@ jobs:
run: Rscript -e 'install.packages("remotes")'

- name: Install package dependencies
run: Rscript -e 'install.packages(c("smacof" "vegan"), dependencies = TRUE)'
run: Rscript -e 'install.packages(c("smacof", "basicspace", "vegan"), dependencies = TRUE)'

- name: Install basicspace from GitHub
env:
Expand All @@ -73,8 +72,8 @@ jobs:
- name: Install rcmdcheck package
run: Rscript -e 'install.packages("rcmdcheck")'

# - name: Check
# run: Rscript -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")'
- name: Check
run: Rscript -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")'

- name: Test (optional)
run: Rscript -e 'devtools::test()'
Expand Down

0 comments on commit edb38ab

Please sign in to comment.