-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (89 loc) · 2.44 KB
/
linux-build-9.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Linux (with Tcl 9.0)
on: [push]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 7
steps:
- name: Checkout Tcl
uses: actions/checkout@v4
with:
repository: tcltk/tcl
ref: core-9-0-b3-rc
path: tcl
- name: Configure Tcl
working-directory: tcl/unix
run: |
./configure --prefix=$HOME/tcl_install || {
cat config.log
echo "::error::Failure during Configure Tcl"
exit 1
}
- name: Build Tcl
working-directory: tcl/unix
run: |
make -j || {
echo "::error::Failure during Build Tcl"
exit 1
}
- name: Install Tcl
working-directory: tcl/unix
run: |
make install || {
echo "::error::Failure during Install Tcl"
exit 1
}
- name: Build tdom
shell: bash
run: |
curl -L -O http://tdom.org/downloads/tdom-0.9.4-src.tar.gz
tar -xzvf tdom-0.9.4-src.tar.gz
cd tdom-0.9.4/unix
../configure --with-tcl=$HOME/tcl_install/lib --prefix=$HOME/tcl_install || {
cat config.log
echo "::error::Failure during Configure tdom"
exit 1
}
make -j || {
echo "::error::Failure during Build tdom"
exit 1
}
make install || {
echo "::error::Failure during Install tdom"
exit 1
}
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake .. -DTCL_INCLUDE_DIR=$HOME/tcl_install/include -DTCL_LIBRARY_DIR=$HOME/tcl_install/lib
- name: Build
working-directory: build
run: |
make -j || {
echo "::error::Failure during Build"
exit 1
}
- name: Run Tests
working-directory: build
run: |
PATH="$HOME/tcl_install/bin:$PATH" LD_LIBRARY_PATH="$HOME/tcl_install/lib" make test || {
echo "::error::Failure during Test"
exit 1
}
- name: Test-Drive Installation
working-directory: build
run: |
make install || {
echo "::error::Failure during Install"
exit 1
}