Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e55be58

Browse files
committedJun 5, 2025·
Try workaround for libc++
1 parent a2c21c2 commit e55be58

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed
 

‎.github/workflows/RHUB-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
name: RHUB-check
6+
7+
jobs:
8+
R-CMD-check:
9+
runs-on: ubuntu-latest
10+
name: r-hub2/${{ matrix.container }}
11+
container: ghcr.io/r-hub/containers/${{ matrix.container }}:latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
container: [ 'clang18', 'clang20', 'ubuntu-clang' ]
16+
17+
env:
18+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
19+
R_KEEP_PKG_SOURCE: yes
20+
DOWNLOAD_STATIC_LIBV8: true
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: r-lib/actions/setup-pandoc@v2
26+
27+
- uses: r-lib/actions/setup-r-dependencies@v2
28+
with:
29+
extra-packages: any::rcmdcheck
30+
needs: check
31+
32+
- uses: r-lib/actions/check-r-package@v2

‎cleanup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
rm -f src/Makevars configure.log autobrew
2+
rm -f src/Makevars configure.log autobrew get-im*.sh

‎configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ if [ -z "$PKGCONFIG_LIBS" ] && [ `command -v GraphicsMagick++-config` ]; then
2626
echo "Warning: found GraphicsMagick++ instead of ImageMagick++. GraphicsMagick is not supported."
2727
fi
2828

29+
# CRAN Linux LIBC++ is incompatible with Fedora-42 ImageMagick-7
30+
if [ "$(uname -sm)" = "Linux x86_64" ] && echo "$CXX" | grep -Fq "clang"; then
31+
curl -sOL "https://github.com/ropensci/magick/releases/download/ImageMagick-6.9.13-25/get-im6-linux.sh" && . ./get-im6-linux.sh || true
32+
fi
33+
2934
# Note that cflags may be empty in case of success
3035
if [ "$INCLUDE_DIR" ] || [ "$LIB_DIR" ]; then
3136
echo "Found INCLUDE_DIR and/or LIB_DIR!"

0 commit comments

Comments
 (0)
Please sign in to comment.