2020-11-13 19:15:53 +00:00
|
|
|
|
|
|
|
name: Spec Compliance
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-10-16 16:10:27 +00:00
|
|
|
- cron: "0 0 * * 3"
|
2020-11-13 19:15:53 +00:00
|
|
|
|
2021-10-16 16:10:26 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-11-13 19:15:53 +00:00
|
|
|
jobs:
|
|
|
|
h2spec:
|
|
|
|
name: h2spec
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- TARGET: linux-glibc
|
|
|
|
CC: gcc
|
|
|
|
os: ubuntu-latest
|
|
|
|
steps:
|
2023-09-06 14:57:29 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-13 19:15:53 +00:00
|
|
|
- name: Install h2spec
|
2022-05-05 10:15:12 +00:00
|
|
|
id: install-h2spec
|
2020-11-13 19:15:53 +00:00
|
|
|
run: |
|
2022-05-05 10:15:12 +00:00
|
|
|
H2SPEC_VERSION=`curl --silent "https://api.github.com/repos/summerwind/h2spec/releases/latest" | jq -r -j '.tag_name'`
|
|
|
|
curl -fsSL https://github.com/summerwind/h2spec/releases/download/${H2SPEC_VERSION}/h2spec_linux_amd64.tar.gz -o h2spec.tar.gz
|
2020-11-13 19:15:53 +00:00
|
|
|
tar xvf h2spec.tar.gz
|
|
|
|
sudo install -m755 h2spec /usr/local/bin/h2spec
|
2022-10-14 17:46:07 +00:00
|
|
|
echo "version=${H2SPEC_VERSION}" >> $GITHUB_OUTPUT
|
2020-11-13 19:15:53 +00:00
|
|
|
- name: Compile HAProxy with ${{ matrix.CC }}
|
|
|
|
run: |
|
|
|
|
make -j$(nproc) all \
|
|
|
|
ERR=1 \
|
|
|
|
TARGET=${{ matrix.TARGET }} \
|
|
|
|
CC=${{ matrix.CC }} \
|
2022-02-23 16:58:46 +00:00
|
|
|
DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \
|
2020-11-13 19:15:53 +00:00
|
|
|
USE_OPENSSL=1
|
|
|
|
sudo make install
|
|
|
|
- name: Show HAProxy version
|
|
|
|
id: show-version
|
|
|
|
run: |
|
|
|
|
echo "::group::Show dynamic libraries."
|
|
|
|
if command -v ldd > /dev/null; then
|
|
|
|
# Linux
|
|
|
|
ldd $(which haproxy)
|
|
|
|
else
|
|
|
|
# macOS
|
|
|
|
otool -L $(which haproxy)
|
|
|
|
fi
|
|
|
|
echo "::endgroup::"
|
|
|
|
haproxy -vv
|
2022-10-14 17:46:07 +00:00
|
|
|
echo "version=$(haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT
|
2020-11-13 19:15:53 +00:00
|
|
|
- name: Launch HAProxy ${{ steps.show-version.outputs.version }}
|
|
|
|
run: haproxy -f .github/h2spec.config -D
|
2022-05-05 10:15:12 +00:00
|
|
|
- name: Run h2spec ${{ steps.install-h2spec.outputs.version }}
|
2020-11-13 19:15:53 +00:00
|
|
|
run: h2spec -Svtk -h 127.0.0.1 -p 8443
|