key: ${{ matrix.os }}-${{ matrix.compiler.CC }}-${{ matrix.layer.nick }}
- name: Run build on Linux
- run: ./test-builds.sh ${{ matrix.layer.name }}
+ run: ./test-builds.sh --verbose ${{ matrix.layer.name }}
- name: Publish build logs
if: success() || failure()
uses: github/codeql-action/init@v3
- name: Build Squid
- run: ./test-builds.sh ./test-suite/buildtests/layer-02-maximus.opts
+ run: ./test-builds.sh --verbose ./test-suite/buildtests/layer-02-maximus.opts
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Run test-builds
id: test-builds
- run: |
- ./test-builds.sh ${{ matrix.layer.name }}
+ run: ./test-builds.sh --verbose ${{ matrix.layer.name }}
- name: Publish build logs
if: success() || failure()
- name: Run test-builds
id: test-builds
run: |
+ echo "::group::setup output"
eval `brew shellenv`
PKG_CONFIG_PATH="$HOMEBREW_PREFIX/lib/pkgconfig"
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$HOMEBREW_PREFIX/opt/openldap/lib/pkgconfig"
editable=$HOMEBREW_CELLAR/libtool/2.4.7/bin/glibtoolize
sed -i.bak 's@ltdl_ac_aux_dir=""@ltdl_ac_aux_dir="../build-aux"@' $editable || true
diff -u $editable.bak $editable || true
+ echo "::endgroup::"
- ./test-builds.sh
+ ./test-builds.sh --verbose
- name: Publish build logs
if: success() || failure()
run: |
export MAKE=gmake
- ./test-builds.sh
+ ./test-builds.sh --verbose
- name: Publish build logs
if: success() || failure()
done
logtee() {
+ local layer=$2
case $verbose in
yes)
+ echo "::group::$layer output" # github collapsible section
tee $1
+ echo "::endgroup::"
;;
progress)
tee $1 | awk '{printf "."; n++; if (!(n % 80)) print "" } END {print ""}'
# log the result for the outer script to notice
echo "buildtest.sh result is $result";
- } 2>&1 | logtee ${log}
+ } 2>&1 | logtee ${log} ${layer}
result=1 # failure by default
if grep -q '^buildtest.sh result is 0$' ${log}; then