We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa68a6 commit 2695a8eCopy full SHA for 2695a8e
.github/workflows/common.yml
@@ -81,6 +81,7 @@ jobs:
81
build-and-test:
82
env:
83
QCHECK_MSG_INTERVAL: '60'
84
+ TIMEOUT: ${{ inputs.timeout }}
85
DUNE_PROFILE: ${{ inputs.dune_profile }}
86
OCAMLRUNPARAM: ${{ inputs.runparam }}
87
ONLY_TEST: ${{ inputs.only_test }}
@@ -118,6 +119,10 @@ jobs:
118
119
echo "LDFLAGS=-L/usr/lib/i386-linux-gnu/" >> $GITHUB_ENV
120
fi
121
122
+ # Compute a deadline to respect time-out
123
+ echo "DEADLINE=$(date -d "now + $((TIMEOUT - 3)) minutes" +%s)" >> "$GITHUB_ENV"
124
+ cat "$GITHUB_ENV"
125
+
126
# Generate an OPAM config for a custom compiler
127
if [ -n "$CUSTOM_COMPILER_VERSION" ]; then
128
if [ -z "$CUSTOM_COMPILER_SRC" ]; then
0 commit comments