Skip to content

Commit 01225f9

Browse files
chipitsinewtarreau
authored andcommitted
CI: compliance: limit run on forks only to manual + cleanup
1 parent 61b30a0 commit 01225f9

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/compliance.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ permissions:
1111
jobs:
1212
h2spec:
1313
name: h2spec
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
include:
18-
- TARGET: linux-glibc
19-
CC: gcc
20-
os: ubuntu-latest
14+
runs-on: ubuntu-latest
15+
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
2116
steps:
2217
- uses: actions/checkout@v4
2318
- name: Install h2spec
@@ -28,12 +23,12 @@ jobs:
2823
tar xvf h2spec.tar.gz
2924
sudo install -m755 h2spec /usr/local/bin/h2spec
3025
echo "version=${H2SPEC_VERSION}" >> $GITHUB_OUTPUT
31-
- name: Compile HAProxy with ${{ matrix.CC }}
26+
- name: Compile HAProxy with gcc
3227
run: |
3328
make -j$(nproc) all \
3429
ERR=1 \
35-
TARGET=${{ matrix.TARGET }} \
36-
CC=${{ matrix.CC }} \
30+
TARGET=linux-glibc \
31+
CC=gcc \
3732
DEBUG="-DDEBUG_POOL_INTEGRITY" \
3833
USE_OPENSSL=1
3934
sudo make install

0 commit comments

Comments
 (0)