Skip to content

Commit 78738de

Browse files
committed
use global multiplier, and disable others
1 parent c7f25b0 commit 78738de

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

.github/workflows/CI.yml

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- main
88
- flint-*
99

10+
env:
11+
GLOBAL_MULTIPLIER: 0.1
12+
1013
concurrency:
1114
# group by workflow and ref; the last slightly strange component ensures that for pull
1215
# requests, we limit to 1 concurrent job, but for the main branch we don't
@@ -28,6 +31,11 @@ jobs:
2831
FLINT_TEST_MULTIPLIER: "10"
2932

3033
steps:
34+
- name: "Rescale multiplier"
35+
run: |
36+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
37+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
38+
3139
- uses: actions/checkout@v4
3240

3341
- name: "Setup"
@@ -110,6 +118,11 @@ jobs:
110118
FLINT_TEST_MULTIPLIER: "2"
111119

112120
steps:
121+
- name: "Rescale multiplier"
122+
run: |
123+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
124+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
125+
113126
- uses: actions/checkout@v4
114127

115128
- name: "Setup"
@@ -158,6 +171,11 @@ jobs:
158171
FLINT_TEST_MULTIPLIER: "3"
159172

160173
steps:
174+
- name: "Rescale multiplier"
175+
run: |
176+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
177+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
178+
161179
- uses: actions/checkout@v4
162180

163181
- name: "Setup"
@@ -208,7 +226,14 @@ jobs:
208226
env:
209227
FLINT_TEST_MULTIPLIER: "2"
210228

229+
if: false # temporary disabled
230+
211231
steps:
232+
- name: "Rescale multiplier"
233+
run: |
234+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
235+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
236+
212237
- uses: actions/checkout@v4
213238

214239
- name: "Setup"
@@ -265,6 +290,11 @@ jobs:
265290
FLINT_TEST_MULTIPLIER: "5"
266291

267292
steps:
293+
- name: "Rescale multiplier"
294+
run: |
295+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
296+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
297+
268298
- uses: actions/checkout@v4
269299

270300
- name: "Setup"
@@ -324,7 +354,14 @@ jobs:
324354
CC: "gcc"
325355
FLINT_TEST_MULTIPLIER: "0.5"
326356

357+
if: false # temporary disabled
358+
327359
steps:
360+
- name: "Rescale multiplier"
361+
run: |
362+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
363+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
364+
328365
- uses: actions/checkout@v4
329366

330367
- name: "Setup MinGW"
@@ -371,8 +408,19 @@ jobs:
371408
name: MSVC (x1)
372409

373410
runs-on: windows-latest
411+
env:
412+
FLINT_TEST_MULTIPLIER: 1
413+
TIMEOUT: 450
374414

375415
steps:
416+
- name: "Rescale multiplier (powershell)"
417+
run: |
418+
$FLINT_TEST_MULTIPLIER = $env:FLINT_TEST_MULTIPLIER * $env:GLOBAL_MULTIPLIER
419+
echo "FLINT_TEST_MULTIPLIER=$FLINT_TEST_MULTIPLIER | Out-File -Append -FilePath $env:GITHUB_ENV"
420+
$TIMEOUT = $env:TIMEOUT * $env:GLOBAL_MULTIPLIER
421+
echo "TIMEOUT=$TIMEOUT | Out-File -Append -FilePath $env:GITHUB_ENV"
422+
shell: powershell
423+
376424
- uses: actions/checkout@v4
377425

378426
- name: "Setup cache for dependencies"
@@ -413,8 +461,9 @@ jobs:
413461
- name: "Check"
414462
run: |
415463
cd build
416-
set "FLINT_TEST_MULTIPLIER=1"
417-
ctest -j5 --output-on-failure --timeout 450
464+
set "FLINT_TEST_MULTIPLIER=$env:FLINT_TEST_MULTIPLIER"
465+
ctest -j5 --output-on-failure --timeout $env:TIMEOUT
466+
shell: powershell
418467

419468

420469

@@ -431,6 +480,11 @@ jobs:
431480
FLINT_TEST_MULTIPLIER: "1.5"
432481

433482
steps:
483+
- name: "Rescale multiplier"
484+
run: |
485+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))"
486+
echo "FLINT_TEST_MULTIPLIER=$((${FLINT_TEST_MULTIPLIER} * ${GLOBAL_MULTIPLIER}))" >> $GITHUB_ENV
487+
434488
- uses: actions/checkout@v4
435489

436490
- name: "Setup latest Alpine Linux"
@@ -496,6 +550,8 @@ jobs:
496550
LOCAL: ${{ github.workspace }}/local
497551
CC: "gcc"
498552

553+
if: false # temporarily disabled
554+
499555
steps:
500556
- uses: actions/checkout@v4
501557

.github/workflows/push_CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
env:
2525
FLINT_TEST_MULTIPLIER: "0.5"
2626

27+
if: false # temporarily disabled
28+
2729
steps:
2830
- uses: actions/checkout@v4
2931

@@ -107,6 +109,8 @@ jobs:
107109

108110
runs-on: windows-latest
109111

112+
if: false # temporarily disabled
113+
110114
defaults:
111115
run:
112116
shell: C:\cygwin64\bin\bash.exe --login -o igncr '{0}'

0 commit comments

Comments
 (0)