Fixing the module finding

This commit is contained in:
Alex Jarmoszuk 2024-04-13 17:36:33 +02:00
parent 89f1faf86d
commit a0ee87984d
No known key found for this signature in database
GPG Key ID: 493B4C56E2380C50

View File

@ -3,7 +3,7 @@ name: Build NGINX Module
on: on:
push: push:
branches: branches:
- master - master # Ensure this matches your main branch name
pull_request: pull_request:
branches: branches:
- master - master
@ -32,16 +32,21 @@ jobs:
chmod +x build.sh chmod +x build.sh
./build.sh ./build.sh
- name: List modules
run: |
ls ${NGINX_PATH}/objs
- name: Package module - name: Package module
run: | run: |
tar -czvf ngx_module.tar.gz -C ${NGINX_PATH}/objs *.so find ${NGINX_PATH}/objs -name "*.so" -exec tar -czvf ngx_http_js_challenge_module.tar.gz -C ${NGINX_PATH}/objs {} +
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ngx-module name: ngx_http_js_challenge_module
path: ngx_module.tar.gz path: ngx_http_js_challenge_module.tar.gz
- name: Check module output - name: Check module output
run: | run: |
ls ${NGINX_PATH}/objs/*.so ls ${NGINX_PATH}/objs/*.so