Skip to content

Commit

Permalink
Add workflow to test it on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Feb 29, 2024
1 parent 579ebbf commit 7e1f1fa
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/memory-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Memory Testing

on:
pull_request:
push:
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
msrv:
name: Memory Testing for - ${{ matrix.settings.os }} - ${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
settings:
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up python & gdb
run: |
sudo apt update
sudo apt -y install python3 gdb
- name: Install rust
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248 # stable
with:
toolchain: stable
targets: ${{ matrix.settings.target }}

- name: Cache cargo registry
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: memtest-${{ matrix.settings.target }}-cargo-${{ matrix.settings.os }}

- name: Memory Testing
run: ./crates/memory-testing/run_test.sh no-docker

0 comments on commit 7e1f1fa

Please sign in to comment.