diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index bccf2155..9799746f 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -14,17 +14,38 @@ jobs: skip_after_successful_duplicate: 'true' paths_ignore: '["**/README.md"]' do_not_skip: '["pull_request"]' + userspace-rcu: + needs: pre_job + if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + name: Build urcu + runs-on: ubuntu-latest + steps: + - run: sudo apt update; sudo apt install -y gcc g++ libpopt-dev + - run: git clone https://github.com/urcu/userspace-rcu + - run: | + ./bootstrap + ./configure --prefix=$HOME/babeltrace2/2.0.4 + make -j 32 install + working-directory: userspace-rcu 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++ libpopt-dev liburcu-dev + - run: sudo apt update; sudo apt install -y gcc g++ libpopt-dev + - 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: 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 + make -j 32 install working-directory: lttng-tools babeltrace2: needs: [pre_job,lttng-tools] @@ -43,13 +64,6 @@ jobs: if: steps.babeltrace2.outputs.cache-hit != 'true' - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: git clone -b anl-ms3 git://git.efficios.com/deliverable/babeltrace.git babeltrace2-2.0.4 - if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: | - wget https://raw.githubusercontent.com/argonne-lcf/THAPI/53262fcaaaf45d7d475884d7e63b69abe47e41d6/.github/workflows/str_nullptr.patch - 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 @@ -57,6 +71,13 @@ jobs: 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: git clone -b anl-ms3 git://git.efficios.com/deliverable/babeltrace.git babeltrace2-2.0.4 + if: steps.babeltrace2.outputs.cache-hit != 'true' + - run: | + wget https://raw.githubusercontent.com/argonne-lcf/THAPI/53262fcaaaf45d7d475884d7e63b69abe47e41d6/.github/workflows/str_nullptr.patch + patch -p1 < str_nullptr.patch + if: steps.babeltrace2.outputs.cache-hit != 'true' + working-directory: babeltrace2-2.0.4 - run: ./bootstrap if: steps.babeltrace2.outputs.cache-hit != 'true' working-directory: babeltrace2-2.0.4