Skip to content

Commit

Permalink
ci: add clang to compile test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Feb 8, 2024
1 parent 5c47c30 commit 93dd838
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ jobs:
- os: ubuntu-20.04
php: "php7.4"
php-config: "php-config7.4"
cc: "gcc"
- os: ubuntu-22.04
php: "php8.1"
php-config: "php-config8.1"
cc: "gcc"
- os: ubuntu-22.04
php: "php8.1"
php-config: "php-config8.1"
cc: "clang"

runs-on: ${{ matrix.os }}

Expand All @@ -43,16 +49,16 @@ jobs:
libcurl4-openssl-dev \
openjdk-11-jdk libgloox-dev gccgo \
cli-common-dev mono-devel mono-mcs uuid-dev \
curl check
curl check ${{ cc == 'clang' && 'clang' || ''}}
- uses: actions/checkout@v2
- name: Build kitchensink uWSGI binary
run: UWSGICONFIG_PHPPATH=${{ matrix.php-config }} /usr/bin/python3 uwsgiconfig.py --build travis
run: CC=${{ cc }} UWSGICONFIG_PHPPATH=${{ matrix.php-config }} /usr/bin/python3 uwsgiconfig.py --build travis
- name: Build uWSGI binary
run: |
/usr/bin/python3 uwsgiconfig.py --build base
CC=${{ cc }} /usr/bin/python3 uwsgiconfig.py --build base
- name: Build cgi plugin
run: |
/usr/bin/python3 uwsgiconfig.py --plugin plugins/cgi base
CC=${{ cc }} /usr/bin/python3 uwsgiconfig.py --plugin plugins/cgi base
- name: Build dummy plugin
run: |
/usr/bin/python3 uwsgiconfig.py --plugin plugins/dummy base
CC=${{ cc }} /usr/bin/python3 uwsgiconfig.py --plugin plugins/dummy base

0 comments on commit 93dd838

Please sign in to comment.