Skip to content

ci: run apt-get update before apt-get install #118

ci: run apt-get update before apt-get install

ci: run apt-get update before apt-get install #118

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