Skip to content

Commit

Permalink
chore: proof of es_ES installation on MacOs and Windows
Browse files Browse the repository at this point in the history
Ref: #194
  • Loading branch information
GeraldineGomez committed Jul 31, 2024
1 parent 6194c1f commit e5e40cc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,25 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

- name: Install system dependencies
- name: Install hunspell and es_ES dictionary
run: |
if [[ $RUNNER_OS == 'Linux' ]]; then
sudo apt-get install -y hunspell hunspell-es
elif [[ $RUNNER_OS == 'macOS' ]]; then
brew install hunspell
curl -L -o "es-ES.aff" https://raw.githubusercontent.com/wooorm/dictionaries/main/dictionaries/es/index.aff
curl -L -o "es-ES.dic" https://raw.githubusercontent.com/wooorm/dictionaries/main/dictionaries/es/index.dic
curl -L -o "es-ES.aff" https://cgit.freedesktop.org/libreoffice/dictionaries/tree/es/es_ES.aff
curl -L -o "es-ES.dic" https://cgit.freedesktop.org/libreoffice/dictionaries/tree/es/es_ES.dic
mv es-ES.aff es-ES.dic ~/Library/Spelling/
elif [[ $RUNNER_OS == 'Windows' ]]; then
choco install hunspell
Invoke-WebRequest -Uri "https://cgit.freedesktop.org/libreoffice/dictionaries/tree/es/es_ES.aff" -OutFile "es-ES.aff"
Invoke-WebRequest -Uri "https://cgit.freedesktop.org/libreoffice/dictionaries/tree/es/es_ES.dic" -OutFile "es-ES.dic"
Expand-Archive -Path "es-ES.aff" -DestinationPath "$env:LOCALAPPDATA/hunspell/dictionaries"
Expand-Archive -Path "es-ES.dic" -DestinationPath "$env:LOCALAPPDATA/hunspell/dictionaries"
else
echo "$RUNNER_OS not supported"
exit 1
fi
- uses: r-lib/actions/check-r-package@v2
id: rcmdcheck
with:
Expand Down

0 comments on commit e5e40cc

Please sign in to comment.