Skip to content

Testing Windows UCRT #55

Testing Windows UCRT

Testing Windows UCRT #55

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: Build (Minimum ecCodes)
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
ECCODES_VERSION: 2.30.0
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update -y
sudo apt-get install -y libproj-dev libaec-dev libopenjp2-7-dev libpng-dev python3-dev
- name: Install macOS dependencies
if: runner.os == 'macOS'
run: |
brew install proj libaec openjpeg zlib python
- name: Build eccodes from source (Linux)
if: runner.os == 'Linux'
run: ./install_eccodes.sh
shell: bash
- name: Build eccodes from source (macOS)
if: runner.os == 'macOS'
env:
OPENJPEG_INCLUDE_DIR: /opt/homebrew/include/openjpeg-2.5
run: ./install_eccodes.sh
shell: bash
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true