Skip to content

Commit

Permalink
feat(cubestore): Build binary with static linking for OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Feb 27, 2021
1 parent 5702cc4 commit 5cd961f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Expand Up @@ -239,17 +239,16 @@ jobs:
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
- name: Install dependencies Windows
run: vcpkg integrate install; vcpkg install openssl:x64-windows
if: matrix.os == 'windows-latest'
env:
VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Musl
#- name: Install dependencies Windows
# run: vcpkg integrate install; vcpkg install openssl:x64-windows
# if: matrix.os == 'windows-latest'
# env:
# VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Darwin
uses: allenevans/set-env@v2.0.0
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
with:
OPENSSL_STATIC: true
OPENSSL_DIR: "/musl"
# https://github.com/actions-rs/cargo/issues/6
#- uses: actions-rs/cargo@v1
- uses: marcopolo/cargo@master
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/rust-master.yml
Expand Up @@ -195,17 +195,16 @@ jobs:
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
- name: Install dependencies Windows
run: vcpkg integrate install; vcpkg install openssl:x64-windows
if: matrix.os == 'windows-latest'
env:
VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Musl
#- name: Install dependencies Windows
# run: vcpkg integrate install; vcpkg install openssl:x64-windows
# if: matrix.os == 'windows-latest'
# env:
# VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Darwin
uses: allenevans/set-env@v2.0.0
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
with:
OPENSSL_STATIC: true
OPENSSL_DIR: "/musl"
# https://github.com/actions-rs/cargo/issues/6
#- uses: actions-rs/cargo@v1
- uses: marcopolo/cargo@master
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/rust.yml
Expand Up @@ -138,17 +138,16 @@ jobs:
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
- name: Install dependencies Windows
run: vcpkg integrate install; vcpkg install openssl:x64-windows
if: matrix.os == 'windows-latest'
env:
VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Musl
#- name: Install dependencies Windows
# run: vcpkg integrate install; vcpkg install openssl:x64-windows
# if: matrix.os == 'windows-latest'
# env:
# VCPKG_ROOT: 'C:\vcpkg'
- name: Set Env Variables for Darwin
uses: allenevans/set-env@v2.0.0
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
with:
OPENSSL_STATIC: true
OPENSSL_DIR: "/musl"
# https://github.com/actions-rs/cargo/issues/6
#- uses: actions-rs/cargo@v1
- uses: marcopolo/cargo@master
Expand Down

0 comments on commit 5cd961f

Please sign in to comment.