From 0c8c419bd78076f89eef265496071e3b24f7af21 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 19 Aug 2024 17:10:25 -0500 Subject: [PATCH] Update presubmit.yml --- .github/workflows/presubmit.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index a416edf7..62a116b3 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -14,10 +14,21 @@ jobs: skip_after_successful_duplicate: 'true' paths_ignore: '["**/README.md"]' do_not_skip: '["pull_request"]' - - babeltrace2: + lttng-tools: needs: pre_job if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + name: Build lttng-tools + runs-on: ubuntu-latest + steps: + - run: sudo apt update; sudo apt install -y gcc g++ + - run: git clone -b anl-ms3 git://git.efficios.com/deliverable/lttng-tools.git + - run: | + ./bootstrap + ./configure --disable-bin-lttng-crash --prefix=$HOME/babeltrace2/2.0.4 + working-directory: lttng-tools + babeltrace2: + needs: [pre_job,lttng-tools] + if: ${{ needs.pre_job.outputs.should_skip != 'true' }} name: Build and cache Babeltrace2 runs-on: ubuntu-latest steps: @@ -39,6 +50,13 @@ jobs: patch -p1 < str_nullptr.patch if: steps.babeltrace2.outputs.cache-hit != 'true' working-directory: babeltrace2-2.0.4 + - name: Load Env + run: | + echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: ./bootstrap if: steps.babeltrace2.outputs.cache-hit != 'true' working-directory: babeltrace2-2.0.4