Skip to content

[PM-5693] CryptoService using memfd_secret on Linux #32

[PM-5693] CryptoService using memfd_secret on Linux

[PM-5693] CryptoService using memfd_secret on Linux #32

name: Test for memory leaks
on:
pull_request:
paths:
- "crates/bitwarden-crypto/**"
- "crates/memory-testing/**"
push:
paths:
- "crates/bitwarden-crypto/**"
- "crates/memory-testing/**"
branches:
- "main"
- "rc"
- "hotfix-rc"
jobs:
memory-test:
name: Testing
runs-on: ubuntu-24.04
steps:
- name: Check out repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up gdb
run: |
sudo apt update
sudo apt -y install gdb
- name: Install rust
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
key: memtest-cargo
- name: Test
run: ./crates/memory-testing/run_test.sh no-docker