Skip to content

Commit

Permalink
fix to windows check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bcallaway11 committed Sep 3, 2024
1 parent 15e5def commit 82be3ea
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install system dependencies
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev libcurl4-openssl-dev

Expand All @@ -54,13 +54,14 @@ jobs:
${{ runner.os }}-r-${{ matrix.config.r }}-
${{ runner.os }}-r-
- name: Install R package dependencies
- name: Install R package dependencies (Windows)
if: runner.os == 'Windows'
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
cmd.exe /c "R -e \"install.packages('devtools'); devtools::install_deps(dependencies = TRUE)\""
else
R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"
fi
R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"
- name: Install R package dependencies (Unix)
if: runner.os != 'Windows'
run: R -e "install.packages('devtools'); devtools::install_deps(dependencies = TRUE)"

- name: Run R CMD check
uses: r-lib/actions/check-r-package@v2

0 comments on commit 82be3ea

Please sign in to comment.