Skip to content

Commit b4a3a24

Browse files
committed
test-ci
1 parent a983d8a commit b4a3a24

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

.github/workflows/mac-setup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
timeout-minutes: 45
1313

1414
steps:
15+
- name: Show environment
16+
run: env
17+
1518
- name: Checkout repository
1619
uses: actions/checkout@v3
1720

setup-ci.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
set -euo pipefail
44

5-
echo "?? Starting setup"
6-
7-
CI_MODE="${CI_MODE:-false}"
8-
# Enable CI mode if environment variable CI is set by the system
9-
if [ "${CI:-}" = "true" ]; then
10-
CI_MODE=true
11-
fi
12-
echo "?? CI mode: $CI_MODE"
13-
145
# ----------------------------------------
156
# Log to timestamped file + stdout
167
# ----------------------------------------
@@ -23,13 +14,23 @@ if [ "$CI_MODE" = "false" ]; then
2314
echo "----------------------------------------"
2415
else
2516
echo "?? Running in CI mode"
26-
LOGFILE="$HOME/setup_ci.log"
27-
exec >"$LOGFILE" 2>&1
28-
echo "?? CI Log: $LOGFILE"
29-
echo "?? Started at $(date)"
30-
echo "----------------------------------------"
31-
trap 'cat "$LOGFILE"' EXIT
17+
# LOGFILE="$HOME/setup_ci.log"
18+
# exec >"$LOGFILE" 2>&1
19+
# echo "?? CI Log: $LOGFILE"
20+
# echo "?? Started at $(date)"
21+
# echo "----------------------------------------"
22+
# trap 'cat "$LOGFILE"' EXIT
23+
set -x
24+
fi
25+
26+
echo "?? Starting setup"
27+
28+
CI_MODE="${CI_MODE:-false}"
29+
# Enable CI mode if environment variable CI is set by the system
30+
if [ "${CI:-}" = "true" ]; then
31+
CI_MODE=true
3232
fi
33+
echo "?? CI mode: $CI_MODE"
3334

3435
# ----------------------------------------
3536
# macOS check

0 commit comments

Comments
 (0)