refactor: explicitly handle unedited args #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Exercise | |
on: | |
push: | |
paths: | |
- "Makefile" | |
- "src/**" | |
- "main.c" | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- "Makefile" | |
- "src/**" | |
- "main.c" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build primary executable | |
run: make | |
- name: Exercise install | |
run: sudo make install | |
- name: Exercise uninstall | |
run: sudo make uninstall | |
- name: Clean up primary build | |
run: make clean | |
- name: Build debug executable | |
run: make debug | |
- name: Clean up debug build | |
run: make debug_clean | |
Run_Valgrind: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
test_files_dir: test_dir | |
utils: .github/utils | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get -y install valgrind | |
- name: Create test files | |
run: sh "$utils"/init_files.sh "$test_files_dir" 10 | |
- name: Build debug executable | |
run: make debug | |
- name: Execute Valgrind | |
run: valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all -s ./debug_mmv "$test_files_dir"/test* |