Skip to content

Commit

Permalink
Merge tag '1.33.0' into packaging.
Browse files Browse the repository at this point in the history
Unit 1.33.0 release.
  • Loading branch information
oxpa committed Sep 17, 2024
2 parents 0e79d96 + 24ed91f commit 2417826
Show file tree
Hide file tree
Showing 281 changed files with 14,048 additions and 2,698 deletions.
31 changes: 31 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
root = true

[{configure,{*.{c,cpp,h,go,java,js,py,rs}}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[Makefile]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 8

[{auto/**,*.toml}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.yaml]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
48 changes: 48 additions & 0 deletions .github/workflows/check-whitespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Check Whitespace

# Get the repo with the commits(+1) in the series.
# Process `git log --check` output to extract just the check errors.

on:
pull_request:
types: [ opened, synchronize ]

jobs:
check-whitespace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: git log --check
id: check_out
run: |
log=
commit=
while read dash etc
do
case "${dash}" in
"---")
commit="${etc}"
;;
"")
;;
*)
if test -n "${commit}"
then
log="${log}\n${commit}"
echo ""
echo "--- ${commit}"
fi
commit=
log="${log}\n${dash} ${etc}"
echo "${dash} ${etc}"
;;
esac
done <<< $(git log --check --pretty=format:"--- %h %s" ${{github.event.pull_request.base.sha}}..)
if test -n "${log}"
then
exit 2
fi
177 changes: 177 additions & 0 deletions .github/workflows/ci-dev-distro-compiler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
name: "CI - Fedora Rawhide / Alpine Edge / GCC / Clang"

on:
push:
branches: master
paths:
- configure
- 'auto/**'
- 'src/**'
- 'test/**'
- '.github/workflows/ci-dev-distro-compiler.yaml'
pull_request:
branches: master
paths:
- configure
- 'auto/**'
- 'src/**'
- 'test/**'
- '.github/workflows/ci-dev-distro-compiler.yaml'

jobs:

fedora-rawhide:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
compiler: [ 'gcc', 'clang' ]

container:
image: fedora:rawhide

steps:
- name: Install tools/deps
run: |
dnf -y update
dnf -y install --setopt=install_weak_deps=False \
which wget git gcc make pcre2-devel openssl-devel \
python-unversioned-command python3 python3-devel \
php-devel php-embedded perl-devel perl-ExtUtils-Embed \
ruby-devel java-devel nodejs-devel nodejs-npm golang
if [ "${{ matrix.compiler }}" = "clang" ]; then
dnf -y install --setopt=install_weak_deps=False clang
fi
npm install -g node-gyp
- uses: actions/checkout@v4

- name: configure unit CC=${{ matrix.compiler }}
run: |
if [ "${{ matrix.compiler }}" = "clang" ]; then
./configure --openssl --cc=clang
else
./configure --openssl
fi
- name: make unit
run: make -j 4

- name: configure unit-php
run: ./configure php

- name: make unit-php
run: make -j 4 php

- name: configure unit-python
run: ./configure python

- name: make unit-python
run: make -j 4 python

- name: configure unit-perl
run: ./configure perl
if: matrix.compiler == 'gcc'

- name: make unit-perl
run: make -j 4 perl
if: matrix.compiler == 'gcc'

- name: configure unit-ruby
run: ./configure ruby

- name: make unit-ruby
run: make -j 4 ruby

- name: configure unit-java
run: ./configure java

- name: make unit-java
run: make -j 4 java

- name: configure unit-nodejs
run: ./configure nodejs

- name: make unit-nodejs
run: make node-local-install DESTDIR=node

- name: configure unit-go
run: ./configure go --go-path=

- name: make unit-go
run: make go-install

- name: Install wasmtime
run: |
wget -O- https://github.com/bytecodealliance/wasmtime/releases/download/v20.0.0/wasmtime-v20.0.0-x86_64-linux-c-api.tar.xz | tar -xJf -
- name: configure unit-wasm
run: ./configure wasm --include-path=wasmtime-v20.0.0-x86_64-linux-c-api/include --lib-path=wasmtime-v20.0.0-x86_64-linux-c-api/lib --rpath

- name: make unit-wasm
run: make wasm

alpine-edge:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
compiler: [ 'gcc', 'clang' ]

container:
image: alpine:edge

steps:
- name: Install tools/deps
run: |
apk update && apk upgrade
apk add gcc make musl-dev openssl-dev pcre2-dev curl \
php83-dev php83-embed python3-dev perl-dev ruby-dev openjdk21-jdk
if [ "${{ matrix.compiler }}" = "clang" ]; then
apk add clang
fi
- uses: actions/checkout@v4

- name: configure unit CC=${{ matrix.compiler }}
run: |
if [ "${{ matrix.compiler }}" = "clang" ]; then
./configure --openssl --cc=clang
else
./configure --openssl
fi
- name: make unit
run: make -j 4

- name: configure unit-php
run: ln -s /usr/lib/libphp83.so /usr/lib/libphp.so && ./configure php

- name: make unit-php
run: make -j 4

- name: configure unit-python
run: ./configure python

- name: make unit-python
run: make -j 4

- name: configure unit-perl
run: ./configure perl

- name: make unit-perl
run: make -j 4 perl

- name: configure unit-ruby
run: ./configure ruby

- name: make unit-ruby
run: make -j 4 ruby

- name: configure unit-java
run: ./configure java

- name: make unit-java
run: make -j 4 java
Loading

0 comments on commit 2417826

Please sign in to comment.