From efb58f750295ae918ab56fd2a2382270814b11cc Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Fri, 6 Oct 2023 12:25:22 +0200 Subject: [PATCH] Windows: switch to toolchain libs for UCRT (#170) --- .github/workflows/R-CMD-check.yaml | 7 ++----- NEWS.md | 2 ++ src/Makevars.ucrt | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index ee65ccb..16ef516 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -23,13 +23,9 @@ jobs: matrix: config: - {os: macos-latest, r: 'release'} - - {os: windows-latest, r: 'release'} - # Use 3.6 to trigger usage of RTools35 - - {os: windows-latest, r: '3.6'} - # use 4.1 to check with rtools40's older compiler + - {os: windows-latest, r: '4.2', rtools: '42'} - {os: windows-latest, r: '4.1'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-latest, r: 'oldrel-1'} @@ -49,6 +45,7 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} + rtools-version: ${{ matrix.config.rtools }} http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true diff --git a/NEWS.md b/NEWS.md index 07a0d16..df95b42 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # svglite (development version) +* Windows: use libpng included with Rtools on R 4.2 and up. + # svglite 2.1.1 * Fix `` include at request of CRAN diff --git a/src/Makevars.ucrt b/src/Makevars.ucrt index 1a2e101..2ac7d52 100644 --- a/src/Makevars.ucrt +++ b/src/Makevars.ucrt @@ -1,2 +1 @@ -CRT=-ucrt -include Makevars.win +PKG_LIBS = -lpng -lz