mirror of
https://github.com/osmarks/ngircd.git
synced 2025-07-03 18:32:50 +00:00
Github CI: Build on a matrix of (ubuntu,macos)x(gcc,clang)
This commit is contained in:
parent
4ad7de02d6
commit
02a572d829
63
.github/workflows/ci.yml
vendored
63
.github/workflows/ci.yml
vendored
@ -28,32 +28,53 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_distcheck:
|
build_and_distcheck:
|
||||||
|
name: build+test
|
||||||
name: Configure ngIRCd sources and run make targets "all" and "distcheck"
|
strategy:
|
||||||
runs-on: ubuntu-latest
|
matrix:
|
||||||
timeout-minutes: 10
|
os:
|
||||||
|
- ubuntu
|
||||||
|
- macos
|
||||||
|
toolchain:
|
||||||
|
- gcc
|
||||||
|
- llvm
|
||||||
|
include:
|
||||||
|
- os: ubuntu
|
||||||
|
toolchain: gcc
|
||||||
|
install_cmd: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install build-essential expect libident-dev libpam0g-dev libssl-dev libwrap0-dev pkg-config telnet zlib1g-dev gcc
|
||||||
|
configure_cmd: |
|
||||||
|
./configure CC=gcc --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
|
||||||
|
- os: ubuntu
|
||||||
|
toolchain: llvm
|
||||||
|
install_cmd: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install build-essential expect libident-dev libpam0g-dev libssl-dev libwrap0-dev pkg-config telnet zlib1g-dev clang
|
||||||
|
configure_cmd: |
|
||||||
|
./configure CC=clang --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
|
||||||
|
- os: macos
|
||||||
|
toolchain: gcc
|
||||||
|
install_cmd: |
|
||||||
|
brew update
|
||||||
|
brew install autoconf automake expect openssl@3 pkg-config telnet zlib gcc
|
||||||
|
configure_cmd: |
|
||||||
|
./configure CC=gcc --enable-ipv6 --with-iconv --with-openssl --with-zlib
|
||||||
|
- os: macos
|
||||||
|
toolchain: llvm
|
||||||
|
install_cmd: |
|
||||||
|
brew update
|
||||||
|
brew install autoconf automake expect openssl@3 pkg-config telnet zlib llvm
|
||||||
|
configure_cmd: |
|
||||||
|
./configure CC=clang --enable-ipv6 --with-iconv --with-openssl --with-zlib
|
||||||
|
runs-on: ${{ matrix.os }}-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@v1
|
- name: Install dependencies
|
||||||
with:
|
run: ${{ matrix.install_cmd }}
|
||||||
packages: >
|
|
||||||
autoconf
|
|
||||||
automake
|
|
||||||
build-essential
|
|
||||||
expect
|
|
||||||
libident-dev
|
|
||||||
libpam0g-dev
|
|
||||||
libssl-dev
|
|
||||||
libwrap0-dev
|
|
||||||
pkg-config
|
|
||||||
telnet
|
|
||||||
zlib1g-dev
|
|
||||||
version: 1.0
|
|
||||||
- name: Generate build system files
|
- name: Generate build system files
|
||||||
run: ./autogen.sh
|
run: ./autogen.sh
|
||||||
- name: Configure the build system
|
- name: Configure the build system
|
||||||
run: ./configure --enable-ipv6 --with-iconv --with-ident --with-openssl --with-pam --with-tcp-wrappers --with-zlib
|
run: ${{ matrix.configure_cmd }}
|
||||||
- name: Build everything
|
- name: Build everything
|
||||||
run: make all
|
run: make all
|
||||||
- name: Create distribution archive and run tests
|
- name: Create distribution archive and run tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user