From cc4c1b1500048b637d566793f54a3d3d0249876c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 16 Mar 2022 23:15:58 +0100 Subject: [PATCH 1/3] Only Windows r-devel-ucrt --- .github/workflows/R-CMD-check.yaml | 161 ----------------------------- 1 file changed, 161 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 75048dd..267cf68 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -23,106 +23,11 @@ concurrency: name: rcc jobs: - rcc-smoke: - runs-on: ubuntu-latest - outputs: - sha: ${{ steps.commit.outputs.sha }} - - name: "Smoke test: stock R" - - # Begin custom: services - # End custom: services - - steps: - - uses: actions/checkout@v2 - - - uses: ./.github/workflows/rate-limit - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - uses: ./.github/workflows/git-identity - - - uses: ./.github/workflows/custom/before-install - if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' - - - uses: ./.github/workflows/install - with: - token: ${{ secrets.GITHUB_TOKEN }} - install-r: false - cache-version: rcc-smoke-1 - needs: check - extra-packages: any::rcmdcheck any::roxygen2 r-lib/styler - - - uses: ./.github/workflows/custom/after-install - if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' - - - uses: ./.github/workflows/update-snapshots - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - - - uses: ./.github/workflows/style - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - - - uses: ./.github/workflows/roxygenize - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - - - id: commit - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - uses: ./.github/workflows/commit - - - uses: ./.github/workflows/check - with: - results: ${{ runner.os }}-smoke-test - - # Runs in a separate workflow, because it's using dev pkgdown - # which might bring in other dev dependencies - pkgdown: - needs: rcc-smoke - - runs-on: ubuntu-latest - - name: "pkgdown" - - # Begin custom: services - # End custom: services - - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ needs.rcc-smoke.outputs.sha }} - - - uses: ./.github/workflows/rate-limit - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - uses: ./.github/workflows/git-identity - if: github.event_name == 'push' - - - uses: ./.github/workflows/custom/before-install - if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' - - - uses: ./.github/workflows/install - with: - token: ${{ secrets.GITHUB_TOKEN }} - install-r: false - cache-version: pkgdown-1 - needs: website - extra-packages: r-lib/pkgdown local::. - - - uses: ./.github/workflows/custom/after-install - if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' - - - uses: ./.github/workflows/pkgdown-build - if: github.event_name != 'push' - - - uses: ./.github/workflows/pkgdown-deploy - if: github.event_name == 'push' - # Windows checks can be run in parallel and independently # when they alone take as long as the smoke and full tests combined. # To achieve this, remove the "needs:" element below. rcc-windows: # Begin custom: early run - needs: rcc-smoke # End custom: early run runs-on: ${{ matrix.config.os }} @@ -137,72 +42,6 @@ jobs: matrix: config: - { os: windows-latest, r: 'devel-ucrt' } - - {os: windows-latest, r: 'release'} - # Use 3.6 to trigger usage of RTools35 - - {os: windows-latest, r: '3.6'} - - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ needs.rcc-smoke.outputs.sha }} - - - uses: ./.github/workflows/custom/before-install - if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' - - - uses: ./.github/workflows/install - with: - r-version: ${{ matrix.config.r }} - cache-version: rcc-main-1 - token: ${{ secrets.GITHUB_TOKEN }} - needs: check - - - uses: ./.github/workflows/custom/after-install - if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' - - - uses: ./.github/workflows/update-snapshots - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - - - uses: ./.github/workflows/check - with: - results: ${{ runner.os }}-r${{ matrix.config.r }} - - rcc-full: - needs: rcc-smoke - - runs-on: ${{ matrix.config.os }} - - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) ${{ matrix.config.desc }} - - # Begin custom: services - # End custom: services - - strategy: - fail-fast: false - matrix: - config: - - {os: macOS-latest, r: 'release'} - - - {os: ubuntu-20.04, r: 'release'} - - # Use older ubuntu to maximise backward compatibility - - {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-18.04, r: 'release', covr: true, desc: 'with covr'} - - {os: ubuntu-18.04, r: 'oldrel-1'} - - # Begin custom: R 3.6 - - {os: ubuntu-18.04, r: 'oldrel-2'} - # End custom: R 3.6 - - # Begin custom: R 3.5 - # End custom: R 3.5 - - # Begin custom: R 3.4 - # End custom: R 3.4 - - # Begin custom: matrix elements - - { os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", libunwind: omit-libunwind, desc: "omit libunwind" } - - { os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", libunwind: omit-libunwind, libbacktrace: omit-libbacktrace, desc: "omit libunwind and libbacktrace" } - # End custom: matrix elements steps: - uses: actions/checkout@v2 From de8bf577d42db1af4f677464684421e390b8a744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 16 Mar 2022 23:16:54 +0100 Subject: [PATCH 2/3] Install RTools 4.2 --- .github/workflows/install/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/install/action.yml b/.github/workflows/install/action.yml index 37f0a03..a06e718 100644 --- a/.github/workflows/install/action.yml +++ b/.github/workflows/install/action.yml @@ -48,6 +48,7 @@ runs: - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ inputs.r-version }} + rtools-version: 42 install-r: ${{ inputs.install-r }} http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true From c1b6b26639a909656ea95ec650a6da4983388679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 16 Mar 2022 23:43:01 +0100 Subject: [PATCH 3/3] SSH --- .github/workflows/R-CMD-check.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 267cf68..3b492a4 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -64,6 +64,11 @@ jobs: - uses: ./.github/workflows/update-snapshots if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: true + - uses: ./.github/workflows/check with: results: ${{ runner.os }}-r${{ matrix.config.r }}