-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (85 loc) · 2.97 KB
/
linux-build.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
name: Linux
on: [push]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
compiler: ["gcc", "clang"]
configure: [""]
include:
- description: "default"
- compiler: gcc
configure: "--disable-c-pkgconfig --disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "without pkgconfig, pages, fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "without pages, fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "without fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "without readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-writerchannel --disable-c-vfs"
description: "without writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-vfs"
description: "without vfs"
name: build (${{ matrix.compiler }}, ${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment (compiler=${{ matrix.compiler }})
run: |
sudo apt-get install tcl8.6-dev tcl-vfs
mkdir "$HOME/install dir"
echo "CFGOPT_COMMON=--with-tcl=/usr/lib/tcl8.6" >> $GITHUB_ENV
echo "CFGOPT_CUSTOM=$CONFIGURE" >> $GITHUB_ENV
echo "CC=$COMPILER" >> $GITHUB_ENV
env:
COMPILER: ${{ matrix.compiler }}
OPTS: ${{ matrix.compiler }}
CONFIGURE: ${{ matrix.configure }}
- name: Configure
run: |
set -x
./configure $CFGOPT_COMMON $CFGOPT_CUSTOM "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" || {
cat config.log
echo "::error::Failure during Configure"
exit 1
}
- name: Build
run: |
make || {
echo "::error::Failure during Build"
exit 1
}
- name: Run Tests
run: |
make test || {
echo "::error::Failure during Test"
exit 1
}
env:
ERROR_ON_FAILURES: 1
- name: Test-Drive Installation
run: |
make install || {
echo "::error::Failure during Install"
exit 1
}
- name: Create Distribution Package
run: |
make dist || {
echo "::error::Failure during Distribute"
exit 1
}