Skip to content

Commit

Permalink
use --with-secure-transport to build libcurl on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
notjaywu committed Dec 11, 2023
1 parent 2d0a3fa commit a8a046e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: build-and-release
on:
push:
tags:
- '*'
- "*"
branches:
- develop

Expand Down Expand Up @@ -84,12 +84,12 @@ jobs:
key: v4-${{ runner.os }}-libcurl-deps-cache-node-${{ matrix.node }}-fork
restore-keys: |
v4-${{ runner.os }}-libcurl-deps-cache-node-${{ matrix.node }}-fork
- name: 'Set GIT_TAG'
- name: "Set GIT_TAG"
if: startsWith(github.ref, 'refs/tags')
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: 'Publish Binary'
- name: "Publish Binary"
run: |
GIT_COMMIT=${{ github.sha }} GIT_TAG=$GIT_TAG ./scripts/ci/build.sh
GIT_COMMIT=${{ github.sha }} GIT_TAG=$GIT_TAG RUNNER_OS=${{ runner.os }} ./scripts/ci/build.sh
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -172,10 +172,10 @@ jobs:
key: v4-${{ runner.os }}-libcurl-deps-cache-electron-${{ matrix.electron-version }}-fork
restore-keys: |
v4-${{ runner.os }}-libcurl-deps-cache-electron-${{ matrix.electron-version }}-fork
- name: 'Set GIT_TAG'
- name: "Set GIT_TAG"
if: startsWith(github.ref, 'refs/tags')
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: 'Publish Binary'
- name: "Publish Binary"
run: |
GIT_COMMIT=${{ github.sha }} GIT_TAG=$GIT_TAG ./scripts/ci/build.sh
- name: Upload artifacts
Expand Down Expand Up @@ -241,8 +241,8 @@ jobs:
ELECTRON_VERSION: ${{ matrix.electron-version }}
npm_config_msvs_version: 2022
npm_config_build_from_source: true
npm_config_runtime: 'electron'
npm_config_dist_url: 'https://electronjs.org/headers'
npm_config_runtime: "electron"
npm_config_dist_url: "https://electronjs.org/headers"
npm_config_target: ${{ matrix.electron-version }}
steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion scripts/ci/build-libcurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ fi
#####
# ssl
####
if [ ! -z "$OPENSSL_BUILD_FOLDER" ]; then
if [ "${RUNNER_OS}" == "macOS" ]; then
libcurl_args+=("--with-secure-transport")
elif [ ! -z "$OPENSSL_BUILD_FOLDER" ]; then
CPPFLAGS="$CPPFLAGS -I$OPENSSL_BUILD_FOLDER/include"
LDFLAGS="$LDFLAGS -L$OPENSSL_BUILD_FOLDER/lib -Wl,-rpath,$OPENSSL_BUILD_FOLDER/lib"

Expand Down

0 comments on commit a8a046e

Please sign in to comment.