Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMcCullough committed Feb 5, 2025
1 parent acbb12e commit c3adda7
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 1,028 deletions.
63 changes: 48 additions & 15 deletions .github/workflows/make-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,33 @@ on:
workflow_dispatch:

jobs:
meta:
runs-on: ubuntu-latest
outputs:
tag: ${{steps.meta.outputs.tag}}
steps:

- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: GetMetadata
id: meta
working-directory: ngx-http-auth-jwt-module
run: |
set -eu
tag=$(git describe --tags --abbrev=0)
echo "tag=${tag}" >> $GITHUB_OUTPUT
build:
name: "NGINX: ${{ matrix.nginx-version }}; libjwt: ${{ matrix.libjwt-version }}"
needs: meta
strategy:
matrix:
# NGINX versions to build/test against
nginx-version: ['1.20.2', '1.22.1', '1.24.0', '1.26.2', '1.27.3']
nginx-version: ['1.20.2'] #, '1.22.1', '1.24.0', '1.26.2', '1.27.3']

# The following versions of libjwt are compatible:
# * v1.0 - v1.12.0
Expand All @@ -19,26 +40,22 @@ jobs:
# * Debian and Ubuntu's repos have v1.10.2
# * EPEL has v1.12.1
# This compiles against each version prior to a breaking change and the latest release
libjwt-version: ['1.12.0', '1.14.0', '1.15.3']
libjwt-version: ['1.12.0'] #, '1.14.0', '1.15.3']
runs-on: ubuntu-latest
steps:

- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
path: ngx-http-auth-jwt-module

- name: Get Metadata
id: meta
run: |
set -eux
cd ngx-http-auth-jwt-module
tag=$(git describe --tags --abbrev=0)
set -eu
echo "filename=ngx-http-auth-jwt-module-${tag}_libjwt-${{matrix.libjwt-version}}_nginx-${{matrix.nginx-version}}.tgz" >> $GITHUB_OUTPUT
# TODO cache the build result so we don't have to do this every time?
- name: Download jansson
uses: actions/checkout@v4
Expand Down Expand Up @@ -104,11 +121,14 @@ jobs:
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: ${{steps.meta.outputs.filename}}
name: release
path: ${{steps.meta.outputs.filename}}

release:
name: Create/Update Release
needs: build
needs:
- meta
- build
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -119,25 +139,38 @@ jobs:
run: |
echo "date_now=$(date --rfc-3339=seconds)" >> "${GITHUB_OUTPUT}"
- name: Download Build Artifacts
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Upload Builds to Release
- name: Flatten Artifacts
run: |
set -eu
cd artifacts
for f in $(find . -type f); do
echo "Staging: ${f}"
mv "${f}" .
done
find . -type d -mindepth 1 -exec rm -rf "{}" +
- name: Create/Update Release
uses: ncipollo/release-action@v1
with:
name: 'Development Build: ${{ github.ref_name }}@${{ github.sha }}'
tag: ${{needs.meta.outputs.tag}}
name: "Pre-release: ${{ github.ref_name }}@${{ github.sha }}"
body: |
> [!WARNING]
> This is an automatically generated pre-release version of the module, which includes the latest master branch changes.
> Please report any bugs you find.
- Build Date: `${{ steps.vars.outputs.date_now }}`
- Commit: ${{ github.sha }}
- Commit: `${{ github.sha }}`
prerelease: true
allowUpdates: true
removeArtifacts: true
artifactErrorsFailBuild: true
artifacts: artifacts/*
tag: dev-build
19 changes: 0 additions & 19 deletions test/docker-compose-test.yml

This file was deleted.

5 changes: 0 additions & 5 deletions test/ec_key_256.pem

This file was deleted.

6 changes: 0 additions & 6 deletions test/ec_key_384.pem

This file was deleted.

8 changes: 0 additions & 8 deletions test/ec_key_521.pem

This file was deleted.

Loading

0 comments on commit c3adda7

Please sign in to comment.