-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'puma:master' into on_booted_feature
- Loading branch information
Showing
92 changed files
with
3,792 additions
and
1,588 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,79 @@ | ||
name: ragel | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'ext/**' | ||
- '.github/workflows/ragel.yml' | ||
pull_request: | ||
paths: | ||
- 'ext/**' | ||
- '.github/workflows/ragel.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ragel: | ||
name: >- | ||
ragel ${{ matrix.os }} ${{ matrix.ruby }} | ||
env: | ||
PUMA_NO_RUBOCOP: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
if: | | ||
!( contains(github.event.pull_request.title, '[ci skip]') | ||
|| contains(github.event.pull_request.title, '[skip ci]')) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { os: ubuntu-20.04 , ruby: head } | ||
- { os: macos-11 , ruby: head } | ||
- { os: windows-2022 , ruby: ucrt } | ||
|
||
steps: | ||
# windows git will convert \n to \r\n | ||
- name: git config | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: repo checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: load ruby | ||
uses: ruby/setup-ruby-pkgs@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
apt-get: ragel | ||
brew: ragel | ||
bundler-cache: true | ||
timeout-minutes: 10 | ||
|
||
- name: check ragel generation | ||
shell: pwsh | ||
run: | | ||
ragel --version | ||
Remove-Item -Path ext/puma_http11/http11_parser.c | ||
Remove-Item -Path ext/puma_http11/org/jruby/puma/Http11Parser.java | ||
rake ragel | ||
if ($IsWindows) { | ||
dos2unix ext/puma_http11/http11_parser.c | ||
dos2unix ext/puma_http11/org/jruby/puma/Http11Parser.java | ||
} | ||
$git_out = $(git status --porcelain) | ||
if ($git_out -ne $null) { | ||
echo "** $git_out **`n" | ||
git --no-pager diff | ||
echo "`nbundle exec ragel changes a file" | ||
exit 1 | ||
} | ||
- name: save ragel generated files on fail | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() }} | ||
with: | ||
name: ${{ matrix.os }}-ragel-generated-files | ||
path: | | ||
ext/puma_http11/http11_parser.c | ||
ext/puma_http11/org/jruby/puma/Http11Parser.java |
Oops, something went wrong.