Also check for old rust on MacOS #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
on: | |
push: | |
pull_request: | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) ${{ matrix.config.FORCE_STATIC_GIFSKI }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: windows-latest, r: '4.1'} | |
- {os: windows-latest, r: '4.2', FORCE_STATIC_GIFSKI: 'static'} | |
- {os: windows-latest, r: 'release'} | |
- {os: windows-latest, r: 'release', FORCE_STATIC_GIFSKI: 'static'} | |
- {os: macOS-13, r: 'release'} | |
- {os: macOS-14, r: 'release'} | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
- {os: ubuntu-24.04, r: 'release'} | |
- {os: ubuntu-22.04, r: 'release'} | |
- {os: ubuntu-20.04, r: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- if: runner.os == 'linux' | |
run: | | |
rustup self uninstall -y | |
sudo apt-get update -y | |
sudo apt-get install -y cargo | |
cargo --version | |
rustc --version | |
- uses: actions/checkout@v4 | |
- 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 | |
- 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-results: true | |
env: | |
FORCE_STATIC_GIFSKI: ${{ matrix.config.FORCE_STATIC_GIFSKI }} |