Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/abismal_release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
workflow_dispatch:

jobs:
build-macos-releases:
build-macos-binaries:
strategy:
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Make abismal dependency directories
run: |
sudo mkdir -p /opt/abismal/lib
sudo mkdir -p /opt/abismal/include
run: sudo mkdir -p /opt/abismal/lib /opt/abismal/include
- name: Install dependency headers and static libs
run: |
brew install zlib gsl automake
Expand All @@ -26,6 +26,7 @@ jobs:
run: |
git clone --recursive https://github.com/samtools/htslib.git
cd htslib
sudo cp -r htslib /opt/abismal/include
autoreconf -i
mkdir build && cd build
../configure \
Expand All @@ -37,16 +38,14 @@ jobs:
LDADD="-L/usr/local/lib"
make CFLAGS="-Wall -O2 -fvisibility=hidden" libhts.a
sudo cp libhts.a /opt/abismal/lib
sudo cp -r ../htslib /opt/abismal/include
- name: Build abismal
run: |
./autogen.sh
mkdir build && cd build
../configure LDFLAGS="-L/opt/abismal/lib" CPPFLAGS="-I/opt/abismal/include"
../configure CXX=g++-14 LDFLAGS="-L/opt/abismal/lib -static-libgcc -static-libstdc++ -Wl,-dead_strip" CPPFLAGS="-I/opt/abismal/include"
make -j4
- name: Rename the binary
run: |
mv abismal/build/abismal abismal_$(uname -m)
run: mv build/abismal abismal_$(uname -m)
- name: Get version number
id: vars
run: |
Expand All @@ -58,11 +57,11 @@ jobs:
- name: Upload the binary
uses: actions/upload-artifact@v4
with:
name: abismal-${{ steps.vars.outputs.vn }}-${{ matrix.os }}-${{ steps.vars.outputs.arch }}
name: abismal-${{ steps.vars.outputs.arch }}
path: |
abismal_${{ steps.vars.outputs.arch }}
package:
needs: build-macos-releases
make-lipo:
needs: build-macos-binaries
runs-on: macos-15
steps:
- uses: actions/checkout@v4
Expand All @@ -77,14 +76,13 @@ jobs:
lipo -create \
binaries/abismal-*/abismal_* \
-output abismal
chmod +x abismal
- name: Get version number
id: vn
run: |
awk '/AC_INIT/ {print "vn="$2}' configure.ac | \
sed "s/\[//; s/\]//; s/,//" >> "$GITHUB_OUTPUT"
run: awk '/AC_INIT/ {print "vn="$2}' configure.ac | sed "s/\[//; s/\]//; s/,//" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
- name: Upload the package files
- name: Upload the lipo binary
uses: actions/upload-artifact@v4
with:
name: abismal-${{ steps.vn.outputs.vn }}-macOS
Expand Down