Skip to content

Commit

Permalink
GHA linux- and mac-flows: speed-up build (j4), add info section into …
Browse files Browse the repository at this point in the history
…build (cherry-picked from bug-02977e0004-sebres branch)
  • Loading branch information
sebres committed Nov 5, 2024
1 parent 51b104d commit d4200c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ jobs:
timeout-minutes: 5
- name: Build
run: |
make all
make -j4 all
timeout-minutes: 5
- name: Build Test Harness
run: |
make tcltest
make -j4 tcltest
timeout-minutes: 5
- name: Info
run: |
ulimit -a || echo 'get limit failed'
echo 'puts exe:\t[info nameofexecutable]\nver:\t[info patchlevel]\t[if {![catch tcl::build-info ret]} {set ret}]\nlib:\t[info library]\nplat:\t[lsort -dictionary -stride 2 [array get tcl_platform]]' | make runtest || echo 'get info failed'
- name: Run Tests
run: |
make test
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
touch tclStubInit.c tclOOStubInit.c
working-directory: generic
- name: Build
run: make all
run: make -j4 all
timeout-minutes: 15
- name: Run Tests
run: make test styles=develop
run: make -j4 test styles=develop
env:
ERROR_ON_FAILURES: 1
MAC_CI: 1
Expand Down Expand Up @@ -64,8 +64,12 @@ jobs:
timeout-minutes: 5
- name: Build
run: |
make all tcltest
make -j4 all tcltest
timeout-minutes: 15
- name: Info
run: |
ulimit -a || echo 'get limit failed'
echo 'puts exe:\t[info nameofexecutable]\nver:\t[info patchlevel]\t[if {![catch tcl::build-info ret]} {set ret}]\nlib:\t[info library]\nplat:\t[lsort -dictionary -stride 2 [array get tcl_platform]]' | make runtest || echo 'get info failed'
- name: Run Tests
run: |
make test
Expand Down

0 comments on commit d4200c8

Please sign in to comment.