From b626d6f246c8f33c94caff7acf2b294d94eef0c6 Mon Sep 17 00:00:00 2001 From: Rob Carnell Date: Sun, 28 Jan 2024 08:46:48 -0500 Subject: [PATCH] continuing to experiment with linux github build --- .github/workflows/r-cmd-check.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/r-cmd-check.yml b/.github/workflows/r-cmd-check.yml index 756d6b3..b4e41a8 100644 --- a/.github/workflows/r-cmd-check.yml +++ b/.github/workflows/r-cmd-check.yml @@ -33,17 +33,25 @@ jobs: env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true GITHUB_PAT: ${{ secrets.MY_PAT }} + R_KEEP_PKG_SOURCE: yes + # https://github.com/r-lib/actions/issues/738 + PKG_SYSREQS: false steps: - name: Checkout uses: actions/checkout@v4 - - name: R setup-pandoc@master + - name: dependencies on Linux not met by setup-r@v2 + # https://github.com/r-lib/actions/issues/738 + if: runner.os == 'Linux' + run: sudo apt-get install -y make libicu-dev libxml2-dev libssl-dev pandoc librdf0-dev libnode-dev libcurl4-gnutls-dev + + - name: R setup uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} - - name: Pandoc setup-pandoc@master + - name: Pandoc setup uses: r-lib/actions/setup-pandoc@v2 - name: Query dependencies @@ -55,7 +63,7 @@ jobs: - name: Cache R packages if: runner.os != 'Windows' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.R_LIBS_USER }} key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}