Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
lfs: true

- name: 'Install rust-toolchain.toml'
- name: "Install rust-toolchain.toml"
run: rustup toolchain install
# We use Swatinem/rust-cache to cache cargo registry, index and target in this job
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -58,16 +58,26 @@ jobs:
- uses: moonrepo/setup-rust@v1
- name: Install dependencies required for libbpf-sys (vendored feature)
run: sudo apt-get update && sudo apt-get install -y autopoint bison flex

- name: Install additional allocators
run: sudo apt-get install -y libmimalloc-dev libjemalloc-dev

- name: Run tests
run: sudo -E $(which cargo) test
env:
RUST_LOG: debug
run: sudo -E $(which cargo) test -- --test-threads 1 --nocapture
working-directory: crates/memtrack

# Since we ran the tests with sudo, the build artifacts will have root ownership
- name: Clean up
run: sudo chown -R $USER:$USER .

benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: 'Install rust-toolchain.toml'
- name: "Install rust-toolchain.toml"
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
- name: Install cargo codspeed
Expand Down
Loading
Loading