Skip to content

Commit

Permalink
ci: add cargo-make installation
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Oct 12, 2023
1 parent fb904e9 commit 0626d88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
~/.cargo/git/db/
~/.rocksdb/
target/
key: ${{ matrix.profile }}-cargo-test }}
key: ${{ matrix.profile }}-cargo-test
- name: Preparing rocksdb library
run: scripts/ci/build_rocksdb.sh
- run: cargo install cargo-make
- run: |
case ${{ matrix.profile }} in
mainnet-silo)
Expand Down Expand Up @@ -69,9 +70,10 @@ jobs:
~/.cargo/git/db/
~/.rocksdb/
target/
key: ${{ matrix.profile }}-cargo-modexp-test }}
key: ${{ matrix.profile }}-cargo-modexp-test
- name: Preparing rocksdb library
run: scripts/ci/build_rocksdb.sh
- run: cargo install cargo-make
- name: Test ${{ matrix.profile }} bench-modexp
run: cargo make --profile ${{ matrix.profile }} bench-modexp

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_rocksdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ INSTALL_PATH=$HOME/.rocksdb
LIB_PATH=$INSTALL_PATH/lib/librocksdb.a

if [[ ! -f $LIB_PATH ]]; then
apt -y install cmake libgflags-dev libsnappy-dev libbz2-dev liblz4-dev libzstd-dev
apt-get -y install cmake libgflags-dev libsnappy-dev libbz2-dev liblz4-dev libzstd-dev
git clone --branch $ROCKSDB_VER https://github.com/facebook/rocksdb
cd rocksdb && mkdir build && cd build || exit
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_ZLIB=1 -DWITH_SNAPPY=1 -DWITH_LZ4=1 -DWITH_ZSTD=1 -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH ..
Expand Down

0 comments on commit 0626d88

Please sign in to comment.