mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 18:08:00 +02:00
fix(ci): print stderr on make failure
This commit is contained in:
10
.github/workflows/check-and-build.yml
vendored
10
.github/workflows/check-and-build.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
||||
version: 1.0
|
||||
- id: build
|
||||
run: |
|
||||
make -j$(nproc) 2> /tmp/stderr
|
||||
make -j$(nproc) 2> /tmp/stderr || (ERR=$!; cat /tmp/stderr >&2; exit $ERR)
|
||||
cat /tmp/stderr >&2
|
||||
|
||||
HSIZE="$(stat --printf="%s" lidm | numfmt --to=iec-i)B"
|
||||
@@ -117,7 +117,7 @@ jobs:
|
||||
|
||||
- id: build
|
||||
run: |
|
||||
make -j$(nproc) CFLAGS="-O3 -Wall -m32" 2> /tmp/stderr
|
||||
make -j$(nproc) CFLAGS="-O3 -Wall -m32" 2> /tmp/stderr || (ERR=$!; cat /tmp/stderr >&2; exit $ERR)
|
||||
cat /tmp/stderr >&2
|
||||
|
||||
HSIZE="$(stat --printf="%s" lidm | numfmt --to=iec-i)B"
|
||||
@@ -163,7 +163,7 @@ jobs:
|
||||
apt-get update && \
|
||||
apt-get install -y make gcc libpam0g-dev
|
||||
run: |
|
||||
make -j$(nproc) 2> /tmp/stderr
|
||||
make -j$(nproc) 2> /tmp/stderr || (ERR=$!; cat /tmp/stderr >&2; exit $ERR)
|
||||
|
||||
cat /tmp/stderr >&2
|
||||
mv lidm lidm-aarch64
|
||||
@@ -213,7 +213,7 @@ jobs:
|
||||
apt-get update && \
|
||||
apt-get install -y make gcc libpam0g-dev
|
||||
run: |
|
||||
make -j$(nproc) 2> /tmp/stderr
|
||||
make -j$(nproc) 2> /tmp/stderr || (ERR=$!; cat /tmp/stderr >&2; exit $ERR)
|
||||
|
||||
cat /tmp/stderr >&2
|
||||
mv lidm lidm-armv7
|
||||
@@ -263,7 +263,7 @@ jobs:
|
||||
apt-get update && \
|
||||
apt-get install -y make gcc libpam0g-dev
|
||||
run: |
|
||||
make -j$(nproc) 2> /tmp/stderr
|
||||
make -j$(nproc) 2> /tmp/stderr || (ERR=$!; cat /tmp/stderr >&2; exit $ERR)
|
||||
|
||||
cat /tmp/stderr >&2
|
||||
mv lidm lidm-riscv64
|
||||
|
Reference in New Issue
Block a user