Skip to content

Commit 4a09db5

Browse files
committed
test
1 parent 72ddb4b commit 4a09db5

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
echo "SDKROOT=$sdkpath" >> "$GITHUB_ENV"
9898
9999
- name: Build release binaries
100-
run: ./koch.py all-strict
100+
run: ./koch.py all-test
101101

102102
- name: Upload workspace to artifacts
103103
uses: ./.github/actions/upload-compiler

.github/workflows/compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
sudo update-alternatives --set gcc /usr/bin/gcc-14
5151
5252
- name: Build compiler and tools
53-
run: ./koch.py all-strict
53+
run: ./koch.py all-test
5454

5555
- name: Upload workspace to artifacts
5656
uses: ./.github/actions/upload-compiler

.github/workflows/leak.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
- name: Build release binaries with LeakSanitizer
3535
run: |
36-
./koch.py all-strict \
36+
./koch.py all \
3737
-d:useMalloc \
3838
-d:leakTest \
3939
--passC:-fsanitize=leak \

tools/koch/koch.nim

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Boot options:
6868
Commands for core developers:
6969
all-strict bootstrap the compiler and build tools for release,
7070
using strict mode for compiling
71+
all-test bootstrap the compiler and build the tools for use
72+
during testing
7173
docs [options] generates the full documentation
7274
csource -d:danger builds the C sources for installation
7375
pdf builds the PDF documentation
@@ -363,16 +365,16 @@ type
363365
Windows
364366
Unix
365367

366-
proc buildReleaseBinaries(args = "") =
368+
proc buildBinaries(args = "") =
367369
## Build binaries needed for creating a release
368370
# Boot the compiler
369-
boot("-d:danger " & args)
371+
boot(args)
370372
# Build the tools
371373
buildTools(args)
372374

373375
proc binArchive(target: BinArchiveTarget, args: string) =
374376
## Builds binary archive for `target`
375-
buildReleaseBinaries()
377+
buildBinaries("-d:danger")
376378
# Build the binary archive
377379
let binaryArgs =
378380
case target
@@ -542,10 +544,11 @@ when isMainModule:
542544
else: showHelp(success = false)
543545
of cmdArgument:
544546
case normalize(op.key)
545-
of "all": buildReleaseBinaries(op.cmdLineRest)
546-
of "all-strict":
547+
of "all": buildBinaries("-d:danger " & op.cmdLineRest)
548+
of "all-test":
547549
# when using strict mode, don't abort after the first error
548-
buildReleaseBinaries("-d:nimStrictMode --errorMax:3 " & op.cmdLineRest)
550+
buildBinaries(
551+
"-d:nimStrictMode --errorMax:3 -d:release " & op.cmdLineRest)
549552
of "boot": boot(op.cmdLineRest)
550553
of "clean": clean(op.cmdLineRest)
551554
of "doc", "docs": buildDocs(op.cmdLineRest)

0 commit comments

Comments
 (0)