Skip to content

fix(ci): select OpenSSL 3 for older macOS R - #76

Merged
karangattu merged 2 commits into
mainfrom
fix-macos-openssl3
Nov 16, 2026
Merged

karangattu merged 2 commits into
mainfrom
fix-macos-openssl3

Conversation

@karangattu

@karangattu karangattu commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

On macOS, R 4.2 through 4.4 can find OpenSSL 1.1 when it builds websocket from source. Recent versions of AsioHeaders need OpenSSL 3.

setup-macOS-dependencies now puts OpenSSL 3 from Homebrew first for those versions of R. setup-r-package uses the cache suffix from that action to keep packages built with the two OpenSSL versions separate.

The integration test calls both actions from this PR. It makes sure that R 4.4 finds OpenSSL 3 through the Homebrew path.

Requested in shinycoreci #389.

Comment thread setup-r-package/action.yaml Outdated
Comment on lines +125 to +140
# Source builds of websocket with recent AsioHeaders need OpenSSL 3.
- name: Use OpenSSL 3 for older macOS R versions
if: >-
runner.os == 'macOS' &&
(startsWith(steps.setup-r.outputs.installed-r-version, '4.2.') ||
startsWith(steps.setup-r.outputs.installed-r-version, '4.3.') ||
startsWith(steps.setup-r.outputs.installed-r-version, '4.4.'))
id: macos-openssl
shell: bash
run: |
openssl_pkgconfig="$(brew --prefix openssl@3)/lib/pkgconfig"
if [[ ! -f "$openssl_pkgconfig/openssl.pc" ]]; then
brew install openssl@3
fi
echo "PKG_CONFIG_PATH=$openssl_pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" >> "$GITHUB_ENV"
echo "cache-suffix=-openssl3" >> "$GITHUB_OUTPUT"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move inside setup-macOS-dependencies

@karangattu
karangattu merged commit c338d0b into main Nov 16, 2026
10 checks passed
@karangattu
karangattu deleted the fix-macos-openssl3 branch November 16, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants