summaryrefslogtreecommitdiffstats
path: root/.github/workflows/stress-test.yml
blob: f71fea37208a4693d359769f20ed9b837065b280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Stress Test
on:
  push:
    branches:
      - master

jobs:
  stess-test:
    name: Stress Test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        stress-test:
          - simple_echo_tcp
    steps:
      - uses: actions/checkout@v2
      - name: Install Rust
        run: rustup update stable

      - name: Install Valgrind
        run: apt install -y valgrind

      # Compiles each of the stress test examples.
      - name: Compile stress test examples
        run: cargo build -p stress-test --release --examples ${{ matrix.stress-test }}

      # Runs each of the examples using Valgrind. Detects leaks and displays them.
      - name: Run valgrind
        run: valgrind  --leak-check=full --show-leak-kinds=all ./target/release/${{ matrix.stress-test }}