Skip to content

Bump serde from 1.0.190 to 1.0.193 #115

Bump serde from 1.0.190 to 1.0.193

Bump serde from 1.0.190 to 1.0.193 #115

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --examples
- name: Run tests
run: cargo test --verbose
- name: Set up environment
run: |
sudo apt update
sudo apt install -y libev-dev valgrind
- name: Run Tests with Valgrind
run: |
touch results
valgrind --leak-check=full --track-origins=yes -q ./target/debug/examples/dijkstras_shortest_path >> results
valgrind --leak-check=full --track-origins=yes -q ./target/debug/examples/serde_example >> results
valgrind --leak-check=full --track-origins=yes -q ./target/debug/examples/edmonds_karps_maximum_flow >> results
valgrind --leak-check=full --track-origins=yes -q ./target/debug/examples/prim_minimum_spanning_tree >> results
# valgrind --leak-check=full --track-origins=yes -q ./target/debug/examples/kojarasus_strongly_connected_components >> results
[ -s ./results ] && (cat ./results && exit -1) || echo "No leaks detected"