Skip to content

Commit

Permalink
fix: Partially fix nightly build for 4.2 (#131)
Browse files Browse the repository at this point in the history
* Remove continue-on-error: true
* Add —compile-suffix when available
  • Loading branch information
robin-aws authored Jul 11, 2023
1 parent b016fea commit 4c4fb06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check-examples-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:

jobs:
check-examples-in-docs:
continue-on-error: true
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reusable-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
reusable_verification:
continue-on-error: true
strategy:
fail-fast: false
matrix:
Expand Down
14 changes: 11 additions & 3 deletions lit.site.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import sys
import re
import platform
import shutil
import subprocess
from os import path

import lit.util
Expand Down Expand Up @@ -136,11 +137,18 @@ def buildCmd(args):

standardArguments = addParams(' '.join([]))

# Pass --compile-suffix when available (since extern implementations depend on this)
dafnyHelpProcess = subprocess.run(['dafny', '/help'], capture_output=True)
if dafnyHelpProcess.stdout.find(b'/compileSuffix') != -1:
standardTranslationArguments = ' '.join(['--compile-suffix'])
else:
standardTranslationArguments = ''

resolveArgs = ' resolve --use-basename-for-filename ' + standardArguments
verifyArgs = ' verify --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments
buildArgs = ' build --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments
runArgs = ' run --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments
testArgs = ' test --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments
buildArgs = ' build --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments + ' ' + standardTranslationArguments
runArgs = ' run --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments + ' ' + standardTranslationArguments
testArgs = ' test --use-basename-for-filename --cores:2 --verification-time-limit:300 ' + standardArguments + ' ' + standardTranslationArguments

config.substitutions.append( ('%trargs', '--use-basename-for-filename --cores:2 --verification-time-limit:300' ) )

Expand Down

0 comments on commit 4c4fb06

Please sign in to comment.