From b04c2fd9acce48dedbedf1f2c1c6ab8f6b6c6ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20IRMAK?= Date: Fri, 16 Feb 2024 14:55:22 +0300 Subject: [PATCH] Fix failing CI tests and builds due to missing jemalloc --- .github/workflows/juno-lint.yml | 2 ++ .github/workflows/juno-test.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/juno-lint.yml b/.github/workflows/juno-lint.yml index 63bb38bddb..bb24a5fc3b 100644 --- a/.github/workflows/juno-lint.yml +++ b/.github/workflows/juno-lint.yml @@ -19,6 +19,8 @@ jobs: with: go-version-file: go.mod cache: false + - name: Install Jemalloc (Ubuntu or self-hosted) + run: sudo apt-get update -qq && sudo apt-get install -y libjemalloc-dev libjemalloc2 -y - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/juno-test.yml b/.github/workflows/juno-test.yml index 928e232cc1..5787559321 100644 --- a/.github/workflows/juno-test.yml +++ b/.github/workflows/juno-test.yml @@ -33,6 +33,12 @@ jobs: core/rust - name: Install deps run: make install-deps + - name: Install Jemalloc (Ubuntu or self-hosted) + if: runner.os == 'Linux' + run: sudo apt-get update -qq && sudo apt-get install -y libjemalloc-dev libjemalloc2 -y + - name: Install dependencies (macOS) + if: runner.os == 'macOS' + run: brew install jemalloc - name: Tests run: make test-cover - name: Benchmark