From 5e0e6c5d1f7993772b7cba6fac0c124d6af72e07 Mon Sep 17 00:00:00 2001 From: lamya1baidouri Date: Tue, 4 Feb 2025 10:07:55 +0100 Subject: [PATCH] add scaphandre 3 --- .github/workflows/pipeline.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 9da777189..0931296a9 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -16,15 +16,17 @@ jobs: - name: Setup Rust and Scaphandre run: | - # Installer Rust si nécessaire + if ! command -v cargo &> /dev/null; then - curl https://sh.rustup.rs -sSf | sh -s -- -y - source "$HOME/.cargo/env" + curl https://sh.rustup.rs -sSf | sh -s -- -y + source "$HOME/.cargo/env" fi # Installer Scaphandre et configurer les permissions cargo install scaphandre - sudo setcap cap_sys_rawio=+ep $(which scaphandre) + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + sudo cp $HOME/.cargo/bin/scaphandre /usr/local/bin/ + sudo setcap cap_sys_rawio=+ep /usr/local/bin/scaphandre sudo chmod +r /dev/cpu/*/msr - name: Setup directories and install dependencies