Skip to content

Adding apt-update to github workflows (#10) #21

Adding apt-update to github workflows (#10)

Adding apt-update to github workflows (#10) #21

Workflow file for this run

name: valgrind
on:
push:
branches:
- '*'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- '*'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: apt-update
run: sudo apt-get update
- name: Install Valgrind
run: sudo apt-get install -y valgrind
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Valgrind
working-directory: ${{github.workspace}}/scripts
run: ${{github.workspace}}/scripts/runvalgrind.sh ${{github.workspace}}/build/bin