Skip to content

Commit 9ba4b28

Browse files
committed
preinstall zlib for standalone contrib builds
1 parent 670fa80 commit 9ba4b28

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/contribs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,43 @@ jobs:
1616
- name: Ubuntu ADA
1717
os: ubuntu-latest
1818
src_dir: contrib/ada
19+
install_zlib: yes
1920

2021
- name: Ubuntu BLAST
2122
os: ubuntu-latest
2223
src_dir: contrib/blast
24+
install_zlib: yes
2325

2426
- name: Ubuntu IOSTREAM
2527
os: ubuntu-latest
2628
src_dir: contrib/iostream3
29+
install_zlib: yes
2730

2831
- name: Ubuntu MINIZIP
2932
os: ubuntu-latest
3033
src_dir: contrib/minizip
34+
install_zlib: yes
3135

3236
- name: Ubuntu PUFF
3337
os: ubuntu-latest
3438
src_dir: contrib/puff
39+
install_zlib: yes
3540

3641
steps:
3742
- name: Checkout repository
3843
uses: actions/checkout@v4
3944

40-
- name: Install packages (Linux)
45+
- name: Install packages
4146
run: |
4247
sudo apt install gnat libbz2-dev
4348
49+
- name: Install zlib
50+
if: ${{ matrix.install_zlib }} == 'yes'
51+
run: |
52+
cmake -S . -B ../build-zlib -DCMAKE_BUILD_TYPE=Release
53+
cmake --build ../build-zlib --config Release
54+
cmake --install ../build-zlib
55+
4456
- name: Generate project files
4557
run: cmake -S ${{ matrix.src_dir }} -B ../build ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release
4658

0 commit comments

Comments
 (0)