Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

njs-related changes #2

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/njs-buildbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: ci
on:
workflow_call:

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
check-if-allowed:
if: ${{ ( github.repository_owner == 'nginx' || github.repository_owner == 'nginxinc' ) }}
Expand Down Expand Up @@ -32,12 +35,14 @@ jobs:
exit 0

test:
name: ${{ matrix.os }}, ${{ matrix.subarch != '' && matrix.subarch || matrix.arch }}
runs-on: [ "${{ matrix.os }}-${{ matrix.arch }}" ]
needs: check-if-allowed
strategy:
matrix:
os: [ alpine-3.19, amazonlinux-2, amazonlinux-2023, debian-11, debian-12, freebsd-14, rhel-7, rhel-8, rhel-9, sles-12, ubuntu-20.04, ubuntu-22.04, ubuntu-23.10 ]
arch: [ amd64, arm64 ]
subarch: [ '' ]
exclude:
- os: rhel-7 # AWS does not provide an RHEL 7 arm64 AMI
arch: arm64
Expand All @@ -47,7 +52,8 @@ jobs:
arch: arm64
include:
- os: debian-12
arch: x86
arch: amd64
subarch: x86
fail-fast: false

steps:
Expand Down Expand Up @@ -167,7 +173,7 @@ jobs:
export DEB_CFLAGS_MAINT_APPEND=$(echo $ENV_JSON | jq -r '."${{ matrix.os }}".DEB_CFLAGS_MAINT_APPEND')
export DEB_LDFLAGS_MAINT_APPEND=$(echo $ENV_JSON | jq -r '."${{ matrix.os }}".DEB_LDFLAGS_MAINT_APPEND')
CC_OPT=$(echo $ENV_JSON | jq -r '."${{ matrix.os }}".CC_OPT')
case "${{ matrix.arch }}" in
case "${{ matrix.subarch }}" in
x86)
CC_OPT_ADD="-m32"
LD_OPT_ADD="-m32"
Expand All @@ -185,7 +191,7 @@ jobs:

NGINX_CONFIGURE_CMD=$(echo $ENV_JSON | jq -r '.NGINX_CONFIGURE_CMD')
NGINX_CONFIGURE_CMD_APPEND=$(echo $ENV_JSON | jq -r '."${{ matrix.os }}".NGINX_CONFIGURE_CMD_APPEND // empty')
case "${{ matrix.arch }}" in
case "${{ matrix.subarch }}" in
x86)
NGINX_CONFIGURE_CMD_APPEND="--with-perl=/usr/bin/perl5.36-i386-linux-gnu"
;;
Expand Down Expand Up @@ -262,6 +268,7 @@ jobs:
TEST_NGINX_VERBOSE: 1

asan:
name: ubuntu-22.04, amd64, asan, ${{ matrix.backend }}
runs-on: [ ubuntu-22.04-amd64 ]
needs: check-if-allowed
strategy:
Expand Down Expand Up @@ -343,6 +350,7 @@ jobs:
TEST_NGINX_VERBOSE: 1

msan:
name: ubuntu-22.04, amd64, msan
runs-on: [ ubuntu-22.04-amd64 ]
needs: check-if-allowed
env:
Expand Down Expand Up @@ -413,6 +421,7 @@ jobs:
make clean

print:
name: debian-12, amd64, print
runs-on: [ debian-12-amd64 ]
needs: check-if-allowed

Expand Down