Skip to content

Commit e749297

Browse files
committed
- parallelize the build in openldap.yml and don't clone the full history.
- removing master from the testing matrix of openldap (not a target version)
1 parent 0f941ad commit e749297

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/openldap.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
strategy:
1717
matrix:
1818
include:
19-
- os: ubuntu-latest
20-
openldap_ref: 'master'
21-
use_container: true
2219
- os: ubuntu-latest
2320
openldap_ref: 'OPENLDAP_REL_ENG_2_5_13'
2421
use_container: true
@@ -143,11 +140,8 @@ jobs:
143140
144141
- name: Build OpenLDAP at ${{ matrix.openldap_ref }}
145142
run: |
146-
git clone https://git.openldap.org/openldap/openldap.git
147-
cd openldap
148-
if [ "${{ matrix.openldap_ref }}" != "master" ]; then
149-
git checkout ${{ matrix.openldap_ref }}
150-
fi
143+
git clone --depth 1 --branch "${{ matrix.openldap_ref }}" \
144+
https://git.openldap.org/openldap/openldap.git
151145
- name: Configure OpenLDAP
152146
working-directory: openldap
153147
run: |
@@ -196,7 +190,7 @@ jobs:
196190
working-directory: openldap
197191
run: |
198192
make depend
199-
make
193+
make -j$(nproc)
200194
- name: Test OpenLDAP
201195
working-directory: openldap
202196
run: |

0 commit comments

Comments
 (0)