-
Notifications
You must be signed in to change notification settings - Fork 2
140 lines (140 loc) · 4.49 KB
/
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Build
on: [push, workflow_dispatch]
jobs:
nsf:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
env:
CC: ${{ matrix.compiler }}
strategy:
fail-fast: false
matrix:
#tcltag: [core-8-branch, core-8-6-branch, core-8-5-branch, core-8-5-19, core-8-6-11, core-8-7-a3]
# cfgopt:
# - ""
include:
- os: macos-latest
compiler: gcc-11
tcltag: core-8-6-branch
experimental: [true]
- os: macos-latest
compiler: clang
tcltag: core-8-6-branch
experimental: [true]
- os: macos-latest
compiler: gcc
tcltag: trunk
experimental: [true]
- os: macos-latest
compiler: clang
tcltag: core-8-6-branch
experimental: [true]
- os: ubuntu-latest
compiler: gcc-10
tcltag: trunk
experimental: [true]
- os: ubuntu-latest
compiler: clang-13
tcltag: trunk
experimental: [true]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-6-branch
experimental: [true]
- os: ubuntu-latest
compiler: clang-13
tcltag: core-8-6-branch
experimental: [true]
- os: macos-latest
compiler: gcc-11
tcltag: core-8-branch
experimental: [true]
- os: macos-latest
compiler: gcc-11
tcltag: core-8-5-branch
experimental: [true]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-branch
experimental: [true]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-5-branch
experimental: [true]
- os: macos-latest
compiler: gcc-11
tcltag: core-8-5-19
experimental: [false]
- os: macos-latest
compiler: gcc-11
tcltag: core-8-6-13
experimental: [false]
- os: macos-latest
compiler: gcc-11
tcltag: core-8-7-a5
experimental: [false]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-5-19
experimental: [false]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-6-13
experimental: [false]
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-7-a5
experimental: [false]
defaults:
run:
shell: bash
steps:
- name: Install Linux dependencies (debugging)
if: ${{ env.ACT && startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y ${CC}
- name: Checkout
uses: actions/checkout@v3
with:
repository: nm-wu/nsf
token: ${{ secrets.PAT }}
- name: Download Tcl tarball
run: |
curl -L -k -o tcl.tar.gz https://core.tcl-lang.org/tcl/tarball/tcl.tar.gz?uuid=${TCLTAG}
tar -xzf tcl.tar.gz
env:
TCLTAG: ${{ matrix.tcltag }}
- name: Configure ${{ matrix.cfgopt }}
run: |
mkdir "${GITHUB_WORKSPACE}/build"
./configure ${CFGOPT} --prefix=${GITHUB_WORKSPACE}/tcl/unix --exec-prefix=${GITHUB_WORKSPACE}/tcl/unix || (cat config.log && exit 1)
working-directory: tcl/unix
env:
CFGOPT: ${{ matrix.cfgopt }}
TCLTAG: ${{ matrix.tcltag }}
- name: Build + install
run: |
make all
make install
working-directory: tcl/unix
- name: Configure ${{ matrix.cfgopt }}
run: |
./configure ${CFGOPT} --prefix=${GITHUB_WORKSPACE}/build --with-tcl=${GITHUB_WORKSPACE}/tcl/unix/lib || (cat config.log && exit 1)
env:
CFGOPT: ${{ matrix.cfgopt }}
- name: Build + tests (debugging)
if: ${{ env.ACT }}
run: |
make test-nohttp
- name: Build + tests (production)
if: ${{ !env.ACT }}
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
# Make "localhost" DNS entry available; see https://github.com/actions/runner-images/issues/6383
sudo networksetup -setdnsservers Ethernet 9.9.9.9
echo `sudo lsof -PiTCP -sTCP:LISTEN`
fi
make test