jimf5 is triggering pipeline #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nginx-otel-module-check | |
run-name: ${{ github.actor }} is triggering pipeline | |
on: [push] | |
jobs: | |
build-module: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake libc-ares-dev libre2-dev | |
- name: Checkout nginx | |
run: hg clone http://hg.nginx.org/nginx/ | |
- name: Configure nginx | |
working-directory: nginx | |
run: | | |
auto/configure --with-compat --with-debug --with-http_ssl_module \ | |
--with-http_v2_module --with-http_v3_module | |
- name: Cache nginx build | |
uses: actions/cache@v3 | |
with: | |
path: nginx | |
key: ${{ runner.os }}-nginx | |
- name: Create build directory | |
run: mkdir build | |
- name: Build module | |
working-directory: build | |
run: | | |
cmake -DNGX_OTEL_NGINX_BUILD_DIR=${PWD}/../nginx/objs .. | |
make -j 4 | |
strip ngx_otel_module.so | |
- name: Archive module | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nginx-otel-module | |
path: build/ngx_otel_module.so | |
test-module: | |
needs: build-module | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Restore cached nginx build | |
uses: actions/cache/restore@v3 | |
with: | |
name: Saved nginx build | |
path: nginx | |
key: ${{ runner.os }}-nginx | |
- name: Download module | |
uses: actions/download-artifact@v3 | |
with: | |
name: nginx-otel-module | |
path: build | |
- name: Install test dependecies | |
working-directory: tests | |
run: | | |
pip install -r requirements.txt | |
- name: Run tests | |
working-directory: tests | |
run: | | |
PYTHONPATH=${PWD} TEST_NGINX_GLOBALS= \ | |
"load_module ${PWD}/../build/ngx_otel_module.so;" \ | |
pytest --log-cli-level=debug |