Skip to content

Commit

Permalink
NJS: added SLES 12
Browse files Browse the repository at this point in the history
  • Loading branch information
thresheek committed May 24, 2024
1 parent 742e342 commit 28e4a21
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/njs-buildbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ jobs:
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, ubuntu-20.04, ubuntu-22.04, ubuntu-23.10 ]
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 ]
exclude:
- os: rhel-7 # AWS does not provide an RHEL 7 arm64 AMI
arch: arm64
- os: freebsd-14 # we don't have arm64 builder for freebsd-14 yet
arch: arm64
- os: sles-12 # we don't have an arm64 for SLES 12
arch: arm64
include:
- os: debian-12
arch: x86
Expand All @@ -51,11 +53,11 @@ jobs:
steps:
- name: checkout v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
if: ${{ matrix.os == 'amazonlinux-2' || matrix.os == 'rhel-7' }}
if: ${{ matrix.os == 'amazonlinux-2' || matrix.os == 'rhel-7' || matrix.os == 'sles-12' }}

- name: checkout v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
if: ${{ matrix.os != 'amazonlinux-2' && matrix.os != 'rhel-7' }}
if: ${{ matrix.os != 'amazonlinux-2' && matrix.os != 'rhel-7' && matrix.os != 'sles-12' }}

- name: Set the defaults and set up environment
run: |
Expand Down Expand Up @@ -117,6 +119,12 @@ jobs:
"LD_OPT": "-Wl,-z,relro -Wl,-z,now",
"type": "rpm"
},
"sles-12": {
"NGINX_CONFIGURE_CMD_APPEND": "--with-http_geoip_module --with-stream_geoip_module",
"CC_OPT": "$(rpm --eval %{optflags}) $(pcre2-config --cflags) -fPIC",
"LD_OPT": "-Wl,-z,relro -Wl,-z,now",
"type": "rpm"
},
"ubuntu-20.04": {
"NGINX_CONFIGURE_CMD_APPEND": "--with-http_geoip_module --with-stream_geoip_module",
"DEB_BUILD_MAINT_OPTIONS": "hardening=+all",
Expand Down Expand Up @@ -202,7 +210,7 @@ jobs:
git clone https://github.com/nginx/nginx-tests
- name: Check out and build quickjs
if: ${{ matrix.os != 'rhel-7' }}
if: ${{ matrix.os != 'rhel-7' && matrix.os != 'sles-12' }}
run: |
git clone https://github.com/bellard/quickjs
cd quickjs && curl -OL http://pp.nginx.com/pluknet/quickjs.patch && git apply quickjs.patch
Expand All @@ -222,7 +230,7 @@ jobs:
$MAKE_UTILITY clean
- name: Configure and make njs with quickjs
if: ${{ matrix.os != 'rhel-7' }}
if: ${{ matrix.os != 'rhel-7' && matrix.os != 'sles-12' }}
run: |
./configure \
--with-quickjs \
Expand All @@ -232,7 +240,7 @@ jobs:
$MAKE_UTILITY -j$(nproc)
- name: Test njs with quickjs
if: ${{ matrix.os != 'rhel-7' }}
if: ${{ matrix.os != 'rhel-7' && matrix.os != 'sles-12' }}
run: |
$MAKE_UTILITY test
$MAKE_UTILITY clean
Expand Down

0 comments on commit 28e4a21

Please sign in to comment.