From 3aa9295b393d22dbc08b42541a6d114f09d911de Mon Sep 17 00:00:00 2001 From: "Charlton, Scott R" Date: Fri, 13 Jan 2023 15:04:56 -0700 Subject: [PATCH] matrix R-CMD-check --- .github/workflows/cmake.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0f712f32..a5681b52 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -94,9 +94,24 @@ jobs: echo DATE=${{ needs.init.outputs.DATE }} echo DATE_RFC_3339=${{ needs.init.outputs.DATE_RFC_3339 }} - r-build: + R-CMD-check: needs: [init] - runs-on: ubuntu-latest + ##runs-on: ubuntu-latest + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + + strategy: + fail-fast: false + matrix: + config: + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} + steps: - uses: actions/checkout@v3 @@ -106,6 +121,8 @@ jobs: - name: Setup R 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: create source @@ -119,7 +136,7 @@ jobs: needs: roxygen2, pkgbuild, check working-directory: R/phreeqc - - name: Document + - name: roxygen2::roxygenise() run: roxygen2::roxygenise() working-directory: R/phreeqc shell: Rscript {0} @@ -130,11 +147,17 @@ jobs: working-directory: R/phreeqc - name: List files + if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' run: | pwd ls -lR find -name "*.tar.gz" + - uses: actions/upload-artifact@v3 + if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' + with: + name: cran + path: ${{ github.workspace }}/R/phreeqc/check/phreeqc_*.tar.gz # r-build: # needs: [init]