-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package workflow do not need openssl env anymore
- Loading branch information
Showing
1 changed file
with
4 additions
and
12 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 |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
GPG_SIGNER: ${{ secrets.GPG_SIGNER }} | ||
run: | | ||
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' ` | ||
docker run --rm -i -w /ckb-cli -v $(pwd):/ckb-cli -e OPENSSL_STATIC=1 $BUILDER_IMAGE make prod | ||
docker run --rm -i -w /ckb-cli -v $(pwd):/ckb-cli $BUILDER_IMAGE make prod | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg | ||
gpg --import devtools/ci/signer.asc | ||
devtools/ci/package.sh target/release/ckb-cli | ||
|
@@ -91,15 +91,7 @@ jobs: | |
run: | | ||
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' ` | ||
export TOP_DIR=$(pwd) | ||
curl -LO https://www.openssl.org/source/openssl-1.1.1.tar.gz | ||
tar -xzf openssl-1.1.1.tar.gz | ||
cd openssl-1.1.1 | ||
CC=aarch64-linux-gnu-gcc ./Configure linux-aarch64 no-shared | ||
CC=aarch64-linux-gnu-gcc make | ||
cd .. | ||
export OPENSSL_LIB_DIR=${TOP_DIR}/openssl-1.1.1 | ||
export OPENSSL_INCLUDE_DIR=${TOP_DIR}/openssl-1.1.1/include | ||
PKG_CONFIG_ALLOW_CROSS=1 OPENSSL_STATIC=1 CC=gcc CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc cargo build --target=aarch64-unknown-linux-gnu --release | ||
PKG_CONFIG_ALLOW_CROSS=1 CC=gcc CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc cargo build --target=aarch64-unknown-linux-gnu --release | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg | ||
gpg --import devtools/ci/signer.asc | ||
devtools/ci/package.sh target/aarch64-unknown-linux-gnu/release/ckb-cli | ||
|
@@ -168,7 +160,7 @@ jobs: | |
GPG_SIGNER: ${{ secrets.GPG_SIGNER }} | ||
run: | | ||
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' ` | ||
make OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/local/opt/[email protected]/lib OPENSSL_INCLUDE_DIR=/usr/local/opt/[email protected]/include prod | ||
make prod | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg | ||
gpg --import devtools/ci/signer.asc | ||
devtools/ci/package.sh target/release/ckb-cli | ||
|
@@ -219,7 +211,7 @@ jobs: | |
GPG_SIGNER: ${{ secrets.GPG_SIGNER }} | ||
run: | | ||
export GIT_TAG_NAME=` echo ${{ github.ref }} | awk -F '/' '{print $4}' ` | ||
make OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/local/opt/[email protected]/lib OPENSSL_INCLUDE_DIR=/usr/local/opt/[email protected]/include prod | ||
make prod | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output devtools/ci/signer.asc devtools/ci/signer.asc.gpg | ||
gpg --import devtools/ci/signer.asc | ||
devtools/ci/package.sh target/release/ckb-cli | ||
|