Skip to content

Commit d09e5ec

Browse files
.github/workflows/abismal_release_macos.yml: adding libdeflate to the macos release build
1 parent a87b619 commit d09e5ec

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/abismal_release_macos.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ jobs:
2020
brew install zlib automake
2121
sudo cp $(brew --prefix zlib)/lib/*.a /opt/abismal/lib
2222
sudo cp -r $(brew --prefix zlib)/include/* /opt/abismal/include
23+
- name: Build and install libdeflate
24+
run: |
25+
git clone https://github.com/ebiggers/libdeflate.git
26+
cd libdeflate
27+
cmake -B build \
28+
-DLIBDEFLATE_BUILD_GZIP=off \
29+
-DLIBDEFLATE_BUILD_TESTS=off \
30+
-DLIBDEFLATE_BUILD_SHARED_LIB=off \
31+
-DCMAKE_VERBOSE_MAKEFILE=on \
32+
-DCMAKE_BUILD_TYPE=Release
33+
cmake --build build -j4
34+
sudo cmake --install build --prefix=/opt/abismal
2335
- name: Build and install HTSlib
2436
run: |
2537
git clone --recursive https://github.com/samtools/htslib.git
@@ -32,12 +44,13 @@ jobs:
3244
--disable-libcurl \
3345
--disable-lzma \
3446
--disable-ref-cache \
35-
--without-libdeflate \
36-
LDADD="-L/usr/local/lib"
47+
--with-libdeflate \
48+
LDFLAGS="-L/usr/local/lib"
3749
make -j4 CFLAGS="-Wall -O2 -fvisibility=hidden" libhts.a
3850
sudo cp libhts.a /opt/abismal/lib
3951
- name: Build abismal
4052
run: |
53+
sed -i "s/dnl AC/AC/" configure.ac
4154
./autogen.sh
4255
mkdir build && cd build
4356
../configure CXX=g++-14 LDFLAGS="-L/opt/abismal/lib -static-libgcc -static-libstdc++ -Wl,-dead_strip" CPPFLAGS="-I/opt/abismal/include"

0 commit comments

Comments
 (0)