From 0873e76d1aff71e538cff344b678bb72ca6c3944 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Fri, 4 Oct 2024 17:03:28 +0200 Subject: [PATCH] Use distro version of cargo to test --- .github/workflows/R-CMD-check.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 8854b0f..3b5ae14 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -23,13 +23,23 @@ jobs: - {os: macOS-13, r: 'release'} - {os: macOS-14, r: 'release'} - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: '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