From 36ed4e02124149088e68955a1ee9ddb818211765 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 26 Jul 2023 01:32:53 +0200 Subject: workflows/ci: refactoring --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55490f3..40db76a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: pull_request: workflow_dispatch: +env: + DEPS: libgit2-dev libjson-c-dev libsodium-dev libsqlite3-dev python3-pytest + jobs: lint: runs-on: ubuntu-latest @@ -32,7 +35,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends libgit2-dev libjson-c-dev libsodium-dev libsqlite3-dev python3-pytest valgrind + sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends $DEPS valgrind - name: Build run: make install - name: Upload binaries @@ -56,7 +59,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends gcovr libgit2-dev libjson-c-dev libsodium-dev libsqlite3-dev python3-pytest + sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends $DEPS gcovr - name: Install FlameGraph run: | git clone --depth 1 https://github.com/brendangregg/FlameGraph.git ~/FlameGraph -- cgit v1.2.3