-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ jobs: | |
|
||
package-for-mac: | ||
name: package-for-mac | ||
runs-on: macos-12 | ||
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
include: | ||
|
@@ -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] | ||
|
@@ -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 }} | ||
|
@@ -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 | ||
|