From e2c1985db8a7023b4962f56ff27fc7ec41d2cdb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 12 Mar 2024 11:49:21 -0300 Subject: [PATCH] github: workflows: build: Set safe.directory to avoid git issues when generating env variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30f1691..348b7a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,6 +103,8 @@ jobs: export PATH="$HOME/.cargo/bin:$PATH" apt install -y pkg-config libudev-dev libssl-dev openssl sccache --show-stats + # Fix issues related to git unable to use current directory since its not from current user + git config --global --add safe.directory * RUSTC_WRAPPER=sccache cargo build --verbose --release --features raspberry sccache --show-stats - name: Rename