Implement a custom prometheus http handler in order to: 1. Support listening on a specified address as opposed to any 2. Remove the requirement on the unmaintained promhttp library This feature comes with one limitation: if an IPv4 address is used, the server will not listen on the IPv6-mapped address, even if IPv6 is available. That is, dual-stacking does not work. Solves: #1475 --------- Co-authored-by: Pavel Punsky <eakraly@users.noreply.github.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Ubuntu
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize ]
|
|
|
|
# make GHA actions use node16 to use ancient container images
|
|
# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
|
# Unclear how long this will work though
|
|
env:
|
|
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
|
|
|
|
jobs:
|
|
builds:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ 'ubuntu:16.04', 'ubuntu:18.04', 'ubuntu:20.04', 'ubuntu:22.04' ]
|
|
runs-on: ubuntu-latest
|
|
container: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install dependencies
|
|
# Set env variable or otherwise tzdata package requires interaction
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
|
- name: configure
|
|
run: ./configure
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: apps tests
|
|
run: cd examples && ./run_tests.sh && ./run_tests_conf.sh && ./run_tests_prom.sh
|