Skip to content

Reduce configuration work for configuration files with a single server #307

Reduce configuration work for configuration files with a single server

Reduce configuration work for configuration files with a single server #307

Workflow file for this run

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