Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 35 additions & 32 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,33 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-24.04, macos-15-intel, macos-14, windows-2022 ]
include:
- os: ubuntu-22.04
build_type: portable
bin_suffix:
pkg_suffix: x86_64-linux-portable
- os: ubuntu-24.04
- os: ubuntu-22.04
build_type: standard
bin_suffix:
pkg_suffix: x86_64-linux
- os: ubuntu-22.04-arm
build_type: portable
bin_suffix:
pkg_suffix: aarch64-linux-portable
- os: ubuntu-22.04-arm
build_type: standard
bin_suffix:
pkg_suffix: aarch64-linux
- os: macos-15-intel
build_type: portable
bin_suffix:
pkg_suffix: x86_64-darwin-portable
- os: macos-14
- os: macos-15
build_type: standard
bin_suffix:
pkg_suffix: x86_64-darwin
pkg_suffix: aarch64-darwin
- os: windows-2022
build_type: standard
bin_suffix: .exe
pkg_suffix: x86_64-windows
steps:
Expand All @@ -66,38 +78,29 @@ jobs:
echo "LIBCLANG_PATH=$($HOME)/scoop/apps/llvm/current/bin" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
scoop install llvm yasm
- if: matrix.os == 'ubuntu-22.04'
name: Build linux portable
run: |
export PWD_DIR=$(pwd)
curl -LO https://www.openssl.org/source/openssl-1.1.1s.tar.gz
tar -xzf openssl-1.1.1s.tar.gz
cd openssl-1.1.1s
./Configure linux-x86_64 shared
make
cd ..
export OPENSSL_LIB_DIR=${PWD_DIR}/openssl-1.1.1s
export OPENSSL_INCLUDE_DIR=${PWD_DIR}/openssl-1.1.1s/include
export OPENSSL_STATIC=1
cargo build --release --features portable
- if: matrix.os == 'ubuntu-24.04'
name: Build linux
- if: matrix.os == 'ubuntu-22.04' && matrix.build_type == 'portable'
name: Build linux portable (x86_64)
run: cargo build --release --features portable,vendored-openssl
- if: matrix.os == 'ubuntu-22.04' && matrix.build_type == 'standard'
name: Build linux (x86_64)
run: cargo build --release
- if: matrix.os == 'macos-15-intel'
name: Build macos portable
run: |
export OPENSSL_LIB_DIR=/usr/local/opt/openssl@1.1/lib
export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@1.1/include
export OPENSSL_STATIC=1
cargo build --release --features portable
- if: matrix.os == 'macos-14'
name: Build macos
- if: matrix.os == 'ubuntu-22.04-arm' && matrix.build_type == 'portable'
name: Build linux portable (aarch64)
run: cargo build --release --features portable,vendored-openssl
- if: matrix.os == 'ubuntu-22.04-arm' && matrix.build_type == 'standard'
name: Build linux (aarch64)
run: cargo build --release
- if: matrix.os == 'macos-15-intel' && matrix.build_type == 'portable'
name: Build macos portable (x86_64)
run: cargo build --release --features portable,vendored-openssl
- if: matrix.os == 'macos-15' && matrix.build_type == 'standard'
name: Build macos (aarch64)
run: |
export OPENSSL_LIB_DIR=/usr/local/opt/openssl@1.1/lib
export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@1.1/include
export OPENSSL_LIB_DIR=/opt/homebrew/opt/openssl@1.1/lib
export OPENSSL_INCLUDE_DIR=/opt/homebrew/opt/openssl@1.1/include
export OPENSSL_STATIC=1
cargo build --release
- if: matrix.os == 'windows-2022'
- if: matrix.os == 'windows-2022' && matrix.build_type == 'standard'
name: Build windows
run: cargo build --release
- name: Get the Version
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions light-client-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ rocksdb = { package = "ckb-rocksdb", version = "=0.21.1", features = [
], default-features = false, optional = true }
env_logger = "0.11"
anyhow = "1.0.56"
openssl = { version = "0.10", optional = true }

[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.6"
Expand All @@ -51,6 +52,7 @@ portable = ["rocksdb", "rocksdb/portable", "ckb-light-client-lib/rocksdb"]
march-native = ["rocksdb", "rocksdb/march-native", "ckb-light-client-lib/rocksdb"]
sqlite = ["ckb-light-client-lib/sqlite"]
rocksdb = ["dep:rocksdb"]
vendored-openssl = ["openssl/vendored"]

# [profile.release]
# overflow-checks = true
Expand Down