Merge pull request #5 from JakkuSakura/fix-deps #39
This file contains hidden or 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
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch library | |
run: | | |
#wget https://github.com/chdb-io/chdb/releases/latest/download/linux-x86_64-libchdb.tar.gz | |
#Fix libchdb version to v2.1.1 until libchdb v3 based chdb-rust refactor | |
wget https://github.com/chdb-io/chdb/releases/download/v2.1.1/linux-x86_64-libchdb.tar.gz | |
tar -xzf linux-x86_64-libchdb.tar.gz | |
sudo mv libchdb.so /usr/lib/libchdb.so | |
sudo ldconfig | |
- name: Build | |
run: cargo build --verbose | |
env: | |
RUST_BACKTRACE: full | |
- name: Run tests | |
run: cargo test | |
env: | |
RUST_BACKTRACE: full |