TeslaGov / ngx-http-auth-jwt-module

Secure your NGINX locations with JWT
MIT License
308 stars 118 forks source link

GitHub Action to automatically build master branch on commit #108

Closed KnownEntity closed 10 months ago

KnownEntity commented 10 months ago

Wrote this up mostly to see if I could. This was mentioned by https://github.com/TeslaGov/ngx-http-auth-jwt-module/issues/73 and I tend to agree.

This workflow can be triggered manually or by commit to the master branch and will automatically:

  1. Build against multiple Nginx and libjwt versions.
  2. Upload the results as a Pre-release Development build.

You can see the action working on my fork and the release here. The Nginx versions to build against can be easily changed by modifying the nginx-version list. Sadly, it doesn't perform build tests in its current state. I'm sure that can be added but I was not inclined to work on that at the moment. The rationale behind using multiple versions of libjwt came after I discovered the hard way that the current binary release won't link against any version of libjwt above 1.12.0 and EPEL currently has 1.12.1.

Open to feedback and of course, change anything you want. Thanks for making this project!

JoshMcCullough commented 10 months ago

@KnownEntity that worked great -- thanks again!

KnownEntity commented 10 months ago

Glad I could help.