fix: sticky batch index bug + aggressive peer eviction for IBD #236
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and test with AddressSanitizer | |
| env: | |
| # Suppress known SQLite memory allocations that LSAN misreports as leaks | |
| LSAN_OPTIONS: suppressions=${{ github.workspace }}/lsan.supp | |
| run: | | |
| make clean | |
| make test \ | |
| CFLAGS="-std=c11 -Wall -Wextra -Wpedantic -O1 -g -fsanitize=address -fno-omit-frame-pointer -Iinclude -pthread" \ | |
| LDFLAGS="-pthread -fsanitize=address -lm" | |
| - name: Build main binary | |
| run: make all |