Skip to content

Commit

Permalink
use valgrind to test ubuntu 20.04 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Oct 22, 2023
1 parent 48ba900 commit f3c13d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update && sudo apt-get install -y liboctave-dev
sudo apt-get update && sudo apt-get install -y liboctave-dev valgrind
curl --retry 3 -kL https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-amd64_linux.tar.xz --output upx.tar.xz
tar -xvf upx.tar.xz
sudo mv upx-4.1.0-amd64_linux/upx /usr/bin
Expand Down Expand Up @@ -99,12 +99,18 @@ jobs:
strip -S zipmat.mex
upx -9 zipmat.mex || true
- name: Run octave test
if: ${{ matrix.os != 'ubuntu-20.04'}}
run: |
octave-cli --version
if [ "$RUNNER_OS" == "Windows" ]; then
export PATH="$PWD/octave/octave-8.3.0-w64-64/mingw64/bin":$PATH
fi
octave-cli --eval "addpath(pwd);cd test;run_zmat_test"
- name: Run octave test
if: ${{ matrix.os == 'ubuntu-20.04'}}
run: |
octave-cli --version
valgrind octave-cli --eval "addpath(pwd);cd test;run_zmat_test"
- name: Create package folder
run: |
mkdir packages
Expand Down

0 comments on commit f3c13d7

Please sign in to comment.