diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-26 01:32:53 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-26 01:32:53 +0200 |
commit | 36ed4e02124149088e68955a1ee9ddb818211765 (patch) | |
tree | 9ca97179b4db796d20669ef86519344e8f1c1be3 | |
parent | use tabs consistently (diff) | |
download | cimple-36ed4e02124149088e68955a1ee9ddb818211765.tar.gz cimple-36ed4e02124149088e68955a1ee9ddb818211765.zip |
workflows/ci: refactoring
-rw-r--r-- | .github/workflows/ci.yml | 7 |
1 files 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 |