replace serde_json with sonic_rs #21
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
name: ci | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
profile: minimal | |
default: true | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install maturin | |
run: python3 -m pip install --user --upgrade pip maturin | |
- name: Install cmake | |
uses: lukka/get-cmake@latest | |
- name: Install boost | |
run: sudo apt-get install libboost-all-dev | |
- name: Build | |
run: RUSTFLAGS="-C target-cpu=native" cargo build --release --verbose | |
- name: Run tests | |
run: cargo test --verbose |