Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2305 from MSP-Greg/no-ssl
Allow Puma to compile when built without SSL, load SSL files on demand
- Loading branch information
Showing
20 changed files
with
203 additions
and
64 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: No SSL | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.os }} ${{ matrix.ruby }} | ||
env: | ||
CI: true | ||
TESTOPTS: -v | ||
DISABLE_SSL: no_ssl | ||
|
||
runs-on: ${{ matrix.os }} | ||
if: | | ||
!( contains(github.event.pull_request.title, '[ci skip]') | ||
|| contains(github.event.pull_request.title, '[skip ci]') | ||
|| contains(github.event.head_commit.message, '[ci skip]') | ||
|| contains(github.event.head_commit.message, '[skip ci]')) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { os: ubuntu-20.04, ruby: 2.7 } | ||
- { os: ubuntu-20.04, ruby: jruby } | ||
- { os: windows-2019, ruby: 2.7 } | ||
|
||
steps: | ||
- name: repo checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: load ruby, ragel | ||
uses: MSP-Greg/setup-ruby-pkgs@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
apt-get: ragel | ||
brew: ragel | ||
mingw: _upgrade_ openssl ragel | ||
|
||
# won't run on Ruby 2.2, see puma.yml | ||
- name: bundle install | ||
shell: pwsh | ||
run: bundle install --jobs 4 --retry 3 | ||
|
||
- name: compile | ||
run: bundle exec rake compile | ||
|
||
- name: test | ||
id: test | ||
timeout-minutes: 10 | ||
run: bundle exec rake test:all |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package puma; | ||
|
||
import java.io.IOException; | ||
|
||
import org.jruby.Ruby; | ||
import org.jruby.runtime.load.BasicLibraryService; | ||
|
||
import org.jruby.puma.Http11; | ||
|
||
public class PumaHttp11Service implements BasicLibraryService { | ||
public boolean basicLoad(final Ruby runtime) throws IOException { | ||
Http11.createHttp11(runtime); | ||
return true; | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.