From 5a5f5115f31b70e0d98fb77dfa3477eaa008c73c Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Thu, 16 Nov 2023 20:35:18 +0100 Subject: [PATCH] Tests debugging! --- .github/workflows/tests.yaml | 4 +++- install.sh | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8be68f1..c74e7f1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -43,6 +43,8 @@ jobs: matrix: kind: [ "system", "user" ] runs-on: ubuntu-latest + env: + LOG_LEVEL: DEBUG steps: - name: Check out repository code uses: actions/checkout@v4 @@ -57,7 +59,7 @@ jobs: if [ "${{ matrix.kind }}" = "user" ]; then ./install.sh -u elif [ "${{ matrix.kind }}" = "system" ]; then - sudo ./install.sh -s + sudo -E ./install.sh -s else exit 1 fi diff --git a/install.sh b/install.sh index 3c082f1..0e2a8cf 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,10 @@ while getopts "dusah-" OPT; do done shift $((OPTIND-1)) -make -C "$SCRIPT_DIR" clean build EXTRA_CFLAGS="-DXDG_APP='\"$APP\"'" +make -C "$SCRIPT_DIR" \ + clean build \ + EXTRA_CFLAGS="-DXDG_APP='\"$APP\"'" \ + LOG_LEVEL=${LOG_LEVEL-INFO} mkdir -pm 0700 "$DESTDIR/bin" install -v "$SCRIPT_DIR/src/cli.exe" "$DESTDIR/bin/$APP"