Skip to content

Commit

Permalink
Fix ubuntu install, add macos
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 3, 2025
1 parent 20cc10c commit 2f72ec7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'devel', rtools: ''}
- {os: macOS-latest, r: 'release', rtools: ''}
- {os: macOS-latest, r: 'devel', rtools: 'true'}
- {os: macOS-latest, r: 'release', rtools: 'true'}
- {os: windows-latest, r: 'devel', rtools: '44'}
- {os: windows-latest, r: 'release', rtools: '44'}
- {os: windows-latest, r: 'oldrel', rtools: '43'}
Expand Down Expand Up @@ -65,12 +65,21 @@ jobs:

- uses: r-lib/actions/[email protected]
with:
cache: "always"
extra-packages: any::rcmdcheck, local::.

- name: Install POCL on Ubuntu Runners
if: ${{ matrix.config.os == 'ubuntu-latest' }}
run: |
sudo apt-get update && apt-get install -y ocl-icd-opencl-dev pocl-opencl-icd
sudo apt-get update && sudo apt-get install -y ocl-icd-opencl-dev pocl-opencl-icd
shell: bash

- name: Install POCL on MacOS Runners
if: ${{ matrix.config.os == 'macOS-latest' }}
run: |
brew install pocl
# Set LDLIBS_OPENCL environment variable
echo "LDLIBS_OPENCL=-L/opt/homebrew/opt/opencl-icd-loader/lib -lOpenCL" >> $GITHUB_ENV
shell: bash

- name: Install cmdstan
Expand Down

0 comments on commit 2f72ec7

Please sign in to comment.