| 1 |
name: Windows |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- "main" |
| 6 |
- "core-8-6-branch" |
| 7 |
tags: |
| 8 |
- "core-**" |
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
env: |
| 12 |
ERROR_ON_FAILURES: 1 |
| 13 |
jobs: |
| 14 |
msvc: |
| 15 |
runs-on: windows-2025 |
| 16 |
defaults: |
| 17 |
run: |
| 18 |
shell: powershell |
| 19 |
working-directory: win |
| 20 |
strategy: |
| 21 |
matrix: |
| 22 |
config: |
| 23 |
- "" |
| 24 |
- "OPTS=static,msvcrt" |
| 25 |
- "OPTS=static,staticpkg,msvcrt" |
| 26 |
- "OPTS=symbols" |
| 27 |
- "OPTS=symbols STATS=compdbg,memdbg" |
| 28 |
|
| 29 |
steps: |
| 30 |
- name: Checkout |
| 31 |
uses: actions/checkout@v6 |
| 32 |
timeout-minutes: 5 |
| 33 |
- name: Init MSVC |
| 34 |
uses: ilammy/msvc-dev-cmd@v1 |
| 35 |
timeout-minutes: 5 |
| 36 |
- name: Build ${{ matrix.config }} |
| 37 |
run: | |
| 38 |
&nmake -f makefile.vc ${{ matrix.config }} all |
| 39 |
if ($lastexitcode -ne 0) { |
| 40 |
throw "nmake exit code: $lastexitcode" |
| 41 |
} |
| 42 |
timeout-minutes: 5 |
| 43 |
- name: Build Test Harness ${{ matrix.config }} |
| 44 |
run: | |
| 45 |
&nmake -f makefile.vc ${{ matrix.config }} tcltest |
| 46 |
if ($lastexitcode -ne 0) { |
| 47 |
throw "nmake exit code: $lastexitcode" |
| 48 |
} |
| 49 |
timeout-minutes: 5 |
| 50 |
- name: Run Tests ${{ matrix.config }} |
| 51 |
run: | |
| 52 |
&nmake -f makefile.vc ${{ matrix.config }} test |
| 53 |
if ($lastexitcode -ne 0) { |
| 54 |
throw "nmake exit code: $lastexitcode" |
| 55 |
} |
| 56 |
timeout-minutes: 30 |
| 57 |
gcc: |
| 58 |
runs-on: windows-2025 |
| 59 |
defaults: |
| 60 |
run: |
| 61 |
shell: msys2 {0} |
| 62 |
working-directory: win |
| 63 |
strategy: |
| 64 |
matrix: |
| 65 |
config: |
| 66 |
- "" |
| 67 |
- "--disable-shared" |
| 68 |
- "--enable-symbols" |
| 69 |
- "--enable-symbols=mem" |
| 70 |
- "--enable-symbols=all" |
| 71 |
|
| 72 |
steps: |
| 73 |
- name: Install MSYS2 |
| 74 |
uses: msys2/setup-msys2@v2 |
| 75 |
with: |
| 76 |
msystem: MINGW64 |
| 77 |
install: git mingw-w64-x86_64-toolchain make |
| 78 |
timeout-minutes: 10 |
| 79 |
- name: Checkout |
| 80 |
uses: actions/checkout@v6 |
| 81 |
timeout-minutes: 5 |
| 82 |
- name: Prepare |
| 83 |
run: | |
| 84 |
touch tclStubInit.c tclOOStubInit.c |
| 85 |
mkdir "${HOME}/install dir" |
| 86 |
working-directory: generic |
| 87 |
- name: Configure ${{ matrix.config }} |
| 88 |
run: | |
| 89 |
./configure ${CFGOPT} "--prefix=$HOME/install dir" || (cat config.log && exit 1) |
| 90 |
env: |
| 91 |
CFGOPT: --enable-64bit ${{ matrix.config }} |
| 92 |
timeout-minutes: 5 |
| 93 |
- name: Build |
| 94 |
run: make -j4 all |
| 95 |
timeout-minutes: 5 |
| 96 |
- name: Build Test Harness |
| 97 |
run: make -j4 tcltest |
| 98 |
timeout-minutes: 5 |
| 99 |
- name: Info |
| 100 |
run: | |
| 101 |
ulimit -a || echo 'get limit failed' |
| 102 |
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' |
| 103 |
- name: Run Tests |
| 104 |
run: make test |
| 105 |
timeout-minutes: 30 |
| 106 |
- name: Install |
| 107 |
run: make install |
| 108 |
timeout-minutes: 5 |
| 109 |
|
| 110 |
|
| 111 |
|