-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (65 loc) · 1.97 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
name: Build
on: [push, workflow_dispatch]
jobs:
naviserver:
runs-on: ubuntu-latest
env:
CC: ${{ matrix.compiler }}
TCLTAG: ${{ matrix.tcltag }}
NSF_VERSION: ${{ matrix.nsf_version }}
NS_MODULES: ${{ matrix.ns_modules }}
TDOM_VERSION: ${{ matrix.tdom_version }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
compiler: gcc-10
tcltag: core-8-6-13
nsf_version: 2.3.0
tdom_version: 0.9.1
- os: ubuntu-latest
compiler: gcc-11
tcltag: core-8-7-a5
ns_modules: nsdbpg nsdbi nsdbipg nsudp nscoap nssmtpd
nsf_version: 2.4.0
tdom_version: 0.9.3
defaults:
run:
shell: bash
steps:
- name: Intro
run: |
echo GITHUB_REF=${GITHUB_REF} PWD=`pwd`
- name: Install Linux dependencies (debugging)
#if: ${{ env.ACT && startsWith(matrix.os, 'ubuntu') }}
run: |
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/naviserver-mirror
#token: ${{ secrets.PAT }}
- name: Show what we have now
run: |
git clone https://github.com/gustafn/install-ns.git
echo GITHUB_REF=${GITHUB_REF} PWD=`pwd`
ls -ltr
- name: Compile all
run: |
sudo \
version_ns=.. \
version_modules=GIT \
version_tcl=${TCLTAG} \
version_xotcl=${NSF_VERSION} \
version_tdom=${TDOM_VERSION} \
ns_modules="${NS_MODULES}" \
CC=${CC} \
with_postgres=0 with_postgres_driver=1 with_ns_doc=0 \
bash install-ns.sh build
working-directory: install-ns
- name: Regression test
run: |
make test