Skip to content

Test workflow windows #266

Test workflow windows

Test workflow windows #266

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
env:
CC: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
- name: Install stuff for creating packages
run: sudo apt install -y fakeroot rpm dpkg debhelper
- name: Install packages required for optional configurations of cntlm
run: sudo apt install -y libkrb5-dev
- name: Install further tools (clang-tools for scan-build)
run: sudo apt install -y clang-tools
- name: Normal build
run: |
./configure
make
./cntlm -h
make distclean
- name: Unicode build
run: |
./configure
CFLAGS=-DUNICODE make
./cntlm -h
make distclean
- name: Build with kerberos enabled
run: |
./configure --enable-kerberos
make
./cntlm -h
make distclean
- name: Verify debug build
run: |
./configure
make DEBUG=1
./cntlm -h
make distclean
- name: Verify package creation and installation
run: |
./configure
make rpm
make deb
make clean
sudo make install
sudo make uninstall
make distclean
- name: Build via scan-build
run: |
./configure
scan-build --force-analyze-debug-code make