ci: run apt-get update before apt-get install #118
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: rgaas workflow | |
on: [push] | |
jobs: | |
rgaas-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: CMake config | |
run: cmake . | |
- name: Clang-Format | |
run: find ./rgaas/ ./modules/ -name *.h -o -name *.c | xargs clang-format-14 --dry-run -Werror | |
- name: Clang-Tidy | |
run: find ./rgaas/ ./modules/ -name *.h -o -name *.c | xargs clang-tidy-14 | |
- name: CMake build | |
run: cmake --build . | |
- name: Run unit tests | |
run: ./build/unit-test | |
- name: Valgrind (install) | |
run: sudo apt-get update && sudo apt-get install valgrind -y | |
- name: Valgrind (run) | |
run: chmod +x ./test/valgrind/valgrind.sh && ./test/valgrind/valgrind.sh | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: build |