Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Dec 11, 2023
1 parent d5fbf8d commit 4aed887
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 200 deletions.
200 changes: 0 additions & 200 deletions .github/workflows/ci-native.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- '*'
jobs:

ci:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -29,3 +30,87 @@ jobs:
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package -P dist

cmake-fedora-latest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: mod_proxy_cluster
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:38
- name: Create container and build
run: |
{
echo 'FROM fedora:38'
echo 'RUN dnf install cmake httpd-devel ${{ matrix.compiler }} -y'
echo 'RUN dnf groupinstall "C Development Tools and Libraries" -y'
echo 'RUN dnf clean all'
echo 'COPY mod_proxy_cluster mod_proxy_cluster'
echo 'WORKDIR /mod_proxy_cluster/native'
echo 'RUN cmake . -DCMAKE_C_COMPILER=${{ matrix.compiler }}'
echo 'RUN make'
} > podmanfile
podman build -f ./podmanfile
name: cmake-fedora-latest

make-fedora-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: mod_proxy_cluster
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:38
- name: Create container and build
run: |
{
echo 'FROM fedora:38'
echo 'RUN dnf install httpd-devel redhat-rpm-config -y'
echo 'RUN dnf groupinstall "C Development Tools and Libraries" -y'
echo 'RUN dnf clean all'
echo 'COPY mod_proxy_cluster mod_proxy_cluster'
echo 'WORKDIR /mod_proxy_cluster/native'
echo 'RUN \'
echo 'for module in advertise mod_cluster_slotmem mod_manager mod_proxy_cluster; do \'
echo ' echo Building: $module; \'
echo ' cd $module; \'
echo ' sh buildconf; \'
echo ' ./configure --with-apxs=$APACHE_DIR/bin/apxs; \'
echo ' make clean; \'
# Ensure the build fails in case of a failure in any of the module builds!
echo ' make || exit 1; \'
echo ' cd ..; \'
echo 'done;'
} > podmanfile
podman build -f ./podmanfile
doxygen:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get doxygen
run: |
sudo apt-get update -y
sudo apt-get install -y doxygen
- name: Build doxygen docs
run: doxygen
- name: Preserve doxygen docs
uses: actions/upload-artifact@v3
with:
name: Doxygen docs
path: doxygen-out/html/*
retention-days: 30
20 changes: 20 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PROJECT_NAME = mod_proxy_cluster
PROJECT_NUMBER = 1.3
PROJECT_BRIEF = An inteligent load-balancer for Apache httpd
PROJECT_LOGO =
OUTPUT_DIRECTORY = doxygen-out
JAVADOC_AUTOBRIEF = YES
OPTIMIZE_OUTPUT_FOR_C = YES
EXTRACT_ALL = YES
INPUT = native README.md
FILE_PATTERNS = *.c \
*.cc \
*.cpp \
*.h \
*.hpp
RECURSIVE = YES
EXCLUDE = test native/build
EXCLUDE_PATTERNS = *CMake*
USE_MDFILE_AS_MAINPAGE = README.md
GENERATE_LATEX = NO
HTML_COLORSTYLE = LIGHT

0 comments on commit 4aed887

Please sign in to comment.