Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Dec 11, 2023
1 parent 1ec61ea commit 8293110
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:

package-for-mac:
name: package-for-mac
runs-on: macos-12
runs-on: macos-11
strategy:
matrix:
include:
Expand All @@ -168,18 +168,18 @@ jobs:
echo "GIT_TAG_NAME=$GIT_TAG_NAME" >> $GITHUB_ENV
- name: Install Dependencies
run: |
# mkdir target && cd target
# curl -LO https://www.openssl.org/source/openssl-3.1.3.tar.gz
# tar -xzf openssl-3.1.3.tar.gz
# cd openssl-3.1.3
# CC=clang
# CC=clang ./Configure --prefix=$(pwd)/build no-shared
# CC=clang make
# CC=clang make install_sw
# echo "we build openssl:"
# ./build/bin/openssl version -a
# echo "system openssl:"
# openssl version -a || echo "system doesn't have openssl"
mkdir target && cd target
curl -LO https://www.openssl.org/source/openssl-3.1.3.tar.gz
tar -xzf openssl-3.1.3.tar.gz
cd openssl-3.1.3
CC=clang
CC=clang ./Configure --prefix=$(pwd)/build no-shared no-ssl-trace no-sse2
CC=clang make
CC=clang make install_sw
echo "we build openssl:"
./build/bin/openssl version -a
echo "system openssl:"
openssl version -a || echo "system doesn't have openssl"
#
# brew --help
# brew uninstall [email protected]
Expand All @@ -192,9 +192,9 @@ jobs:
# ls /usr/local/etc/[email protected] || echo "system doesn't have /usr/loca/etc/[email protected]"
# ls -al /usr/local/Cellar/openssl* || echo "usr/local/Cellar/openssl doesn't have files"
# ls -al /usr/local/Cellar/openssl@3/3.2.0
# echo "uname -a"
# ls ./build
# ls ./build/*
echo "uname -a"
ls ./build
ls ./build/*
- name: Build CKB and Package CKB
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
Expand All @@ -203,10 +203,10 @@ jobs:
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' `
export TOP_DIR=$(pwd)
# export RUSTFLAGS="-L ${TOP_DIR}/target/openssl-3.1.3/build/lib"
# export OPENSSL_DIR=${TOP_DIR}/target/openssl-3.1.3/build
# export OPENSSL_LIB_DIR=/usr/local/opt/[email protected]/lib
# export OPENSSL_INCLUDE_DIR=/usr/local/opt/[email protected]/include
# export OPENSSL_STATIC=1
export OPENSSL_DIR=${TOP_DIR}/target/openssl-3.1.3/build
export OPENSSL_LIB_DIR=${OPENSSL_DIR}/lib
export OPENSSL_INCLUDE_DIR=${OPENSSL_DIR}/include
export OPENSSL_STATIC=1
make ${{ matrix.build_target }}
# cargo build
otool -L ./target/prod/ckb
Expand Down

0 comments on commit 8293110

Please sign in to comment.