From 339d395fbdceabc6b8f70116823abcae5e1e18d5 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 22 Apr 2023 18:10:05 -0300 Subject: ci: print env-related settings in each job To make debugging easier. Use a separate shell script instead of just a make target to ensure that it can safely run before ./configure and without having make installed. --- .github/workflows/build-extra.yml | 4 ++++ .github/workflows/build.yml | 2 ++ .github/workflows/codeql-analysis.yml | 3 +++ .github/workflows/profile-checks.yml | 3 +++ 4 files changed, 12 insertions(+) (limited to '.github') diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml index d11c10718..04023ab45 100644 --- a/.github/workflows/build-extra.yml +++ b/.github/workflows/build-extra.yml @@ -67,6 +67,8 @@ jobs: run: sudo apt-get update - name: install dependencies run: sudo apt-get install libapparmor-dev libselinux1-dev + - name: print env + run: ./ci/printenv.sh - name: configure run: > CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor @@ -92,6 +94,8 @@ jobs: run: sudo apt-get update - name: install clang-tools-14 and dependencies run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev + - name: print env + run: ./ci/printenv.sh - name: configure run: > CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4af788044..b72bdd611 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,8 @@ jobs: sudo apt-get install gcc-12 libapparmor-dev libselinux1-dev expect xzdec whois bridge-utils + - name: print env + run: ./ci/printenv.sh - name: configure run: > CC=gcc-12 ./configure --prefix=/usr --enable-fatal-warnings diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 952185b8a..e1353aa86 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -91,6 +91,9 @@ jobs: - name: Checkout repository uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + - name: print env + run: ./ci/printenv.sh + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@b2c19fb9a2a485599ccf4ed5d65527d94bc57226 diff --git a/.github/workflows/profile-checks.yml b/.github/workflows/profile-checks.yml index fc23f5fa1..9d9e67fe6 100644 --- a/.github/workflows/profile-checks.yml +++ b/.github/workflows/profile-checks.yml @@ -34,7 +34,10 @@ jobs: github.com:443 - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab + - name: print env + run: ./ci/printenv.sh - run: python3 --version + # - name: sort.py # run: > # ./ci/check/profiles/sort.py -- cgit v1.2.3-70-g09d2