Debian Codegraph @

.github/workflows/linux-build.yml

raw symbols SCIP
1 name: Linux
2 on:
3 push:
4 branches:
5 - "main"
6 - "core-8-6-branch"
7 tags:
8 - "core-**"
9 permissions:
10 contents: read
11 jobs:
12 gcc:
13 runs-on: ubuntu-24.04
14 strategy:
15 matrix:
16 config:
17 - ""
18 - "--disable-shared"
19 - "--enable-symbols"
20 - "--enable-symbols=mem"
21 - "--enable-symbols=all"
22 - "CFLAGS=-ftrapv"
23 - "CFLAGS=-DTCL_UTF_MAX=4"
24 - "CFLAGS=-DTCL_UTF_MAX=6"
25 # Duplicated below
26 - "CFLAGS=-m32 CPPFLAGS=-m32 LDFLAGS=-m32 --disable-64bit"
27 defaults:
28 run:
29 shell: bash
30 working-directory: unix
31 steps:
32 - name: Checkout
33 uses: actions/checkout@v6
34 timeout-minutes: 5
35 - name: Install 32-bit dependencies if needed
36 # Duplicated from above
37 if: ${{ matrix.config == 'CFLAGS=-m32 CPPFLAGS=-m32 LDFLAGS=-m32 --disable-64bit' }}
38 run: |
39 sudo apt-get update
40 sudo apt-get install gcc-multilib libc6-dev-i386
41 - name: Prepare
42 run: |
43 touch tclStubInit.c tclOOStubInit.c
44 working-directory: generic
45 - name: Configure ${{ matrix.config }}
46 run: |
47 mkdir "${HOME}/install dir"
48 ./configure ${CFGOPT} "--prefix=$HOME/install dir" || (cat config.log && exit 1)
49 env:
50 CFGOPT: ${{ matrix.config }}
51 timeout-minutes: 5
52 - name: Build
53 run: |
54 make -j4 all
55 timeout-minutes: 5
56 - name: Build Test Harness
57 run: |
58 make -j4 tcltest
59 timeout-minutes: 5
60 - name: Info
61 run: |
62 ulimit -a || echo 'get limit failed'
63 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'
64 - name: Run Tests
65 run: |
66 make test
67 env:
68 ERROR_ON_FAILURES: 1
69 timeout-minutes: 30
70 - name: Test-Drive Installation
71 run: |
72 make install
73 timeout-minutes: 5
74 - name: Create Distribution Package
75 run: |
76 make dist
77 timeout-minutes: 5
78 - name: Convert Documentation to HTML
79 run: |
80 make html-tcl
81 timeout-minutes: 5