-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from kcleal/gw_dev
GW v0.10.0
- Loading branch information
Showing
44 changed files
with
6,093 additions
and
2,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ on: | |
pull_request: | ||
|
||
env: | ||
version: 0.9.3 | ||
version: 0.10.0 | ||
|
||
jobs: | ||
mingw: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sys: [clang64, ucrt64] | ||
sys: [ucrt64] # clang64, | ||
name: ${{ matrix.sys }} | ||
runs-on: windows-latest | ||
defaults: | ||
|
@@ -114,7 +114,7 @@ jobs: | |
run: | | ||
sudo apt update | ||
sudo apt-get install dh-make build-essential debhelper dh-virtualenv | ||
sudo apt-get install devscripts fakeroot debootstrap pbuilder autotools-dev | ||
sudo apt-get install debugedit devscripts fakeroot debootstrap pbuilder autotools-dev | ||
sudo apt install zlib1g-dev libbz2-dev liblzma-dev libncurses5-dev libncursesw5-dev libssl-dev | ||
sudo apt install libgl1-mesa-dev libfontconfig-dev libcurl4-openssl-dev libglfw3 libglfw3-dev | ||
- name: build | ||
|
@@ -140,9 +140,10 @@ jobs: | |
echo "LIBDEFLATE BUILT" && pwd | ||
cd ${BUILD_DIR} | ||
wget -O htslib.tar.bz2 https://github.com/samtools/htslib/releases/download/1.17/htslib-1.17.tar.bz2 | ||
wget -O htslib.tar.bz2 https://github.com/samtools/htslib/releases/download/1.20/htslib-1.20.tar.bz2 | ||
tar -xvf htslib.tar.bz2 | ||
mv htslib-1.17 htslib && rm htslib.tar.bz2 && cd htslib | ||
mv htslib-1.20 htslib && rm htslib.tar.bz2 && cd htslib | ||
sed -i 's/ -g -Wall/ -Wall/' Makefile # strip debug information | ||
./configure --enable-libcurl --enable-s3 --enable-lzma --enable-bz2 --with-libdeflate | ||
make -j3 | ||
echo "HTSLIB BUILT" && pwd | ||
|
@@ -164,21 +165,24 @@ jobs: | |
- name: package | ||
run: | | ||
dh_make --single --createorig --packagename gw_${version} --email [email protected] --yes --native | ||
printf "usr/bin/gw\nusr/share/icons/gw_icon.png\nusr/share/applications/gw.desktop\nusr/lib/gwhts/\nusr/lib/x86_64-linux-gnu/libglfw.so.3\nusr/lib/x86_64-linux-gnu/libglfw.so.3.3" > debian/install | ||
export LDFLAGS="$LDFLAGS -L./lib/skia/out/Release-x64 -L/usr/local/lib -L/usr/lib -L./usr/lib/gwhts -Wl,-rpath,'$ORIGIN/../lib/gwhts'" | ||
sed -i '/^Section/c\Section: Bioinformatics' debian/control | ||
sed -i '/^Homepage/c\Homepage: https://github.com/kcleal/gw' debian/control | ||
sed -i '/^Description/c\Description: Genome browser and variant annotation' debian/control | ||
sed -i '/<insert long/d' debian/control | ||
printf "Conflicts: libglfw3 (<< 3.3)\nReplaces: libglfw3\n" >> debian/control | ||
printf "Conflicts: libglfw3 (<< 3.3)\n" >> debian/control | ||
printf "Replaces: libglfw3 \n" >> debian/control | ||
# Override dh_shlibdeps to include /usr/lib/gwhts | ||
printf '#!/usr/bin/make -f\n%%:\n\tdh $@\n\nclean:\n\tdh_clean\n\noverride_dh_shlibdeps:\n\tdh_shlibdeps -l/usr/lib/gwhts\n' > debian/rules | ||
chmod +x debian/rules | ||
dpkg-buildpackage | ||
dpkg-buildpackage -us -uc | ||
- name: upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# Run this in the gw top-level directory (same as Makefile) | ||
# Also dont forget to source emsdk environment | ||
# source ~/Tools/emsdk/emsdk_env.sh | ||
|
||
emcc --version | ||
mkdir -p wasm_libs | ||
cd wasm_libs | ||
|
||
sudo apt-get install -y zlib1g-dev libbz2-dev libcurl4-gnutls-dev libssl-dev autoconf | ||
|
||
|
||
# Compile LZMA to WebAssembly | ||
LZMA_VERSION="5.2.5" | ||
curl -LO "https://tukaani.org/xz/xz-${LZMA_VERSION}.tar.gz" | ||
tar -xvf xz-${LZMA_VERSION}.tar.gz && rm xz*.gz | ||
cd xz-${LZMA_VERSION} | ||
emconfigure ./configure --disable-shared --disable-threads | ||
emmake make -j4 CFLAGS="-Oz -fPIC -s USE_PTHREADS=0 -s EXPORT_ALL=1 -s ASSERTIONS=1" | ||
cd .. | ||
|
||
|
||
# Run ./configure | ||
CFLAGS="-s USE_ZLIB=1 -s USE_BZIP2=1 ${CFLAGS_LZMA} -I./xz-${LZMA_VERSION}/src/liblzma/api/" | ||
LDFLAGS="$LDFLAGS_LZMA -L./xz-${LZMA_VERSION}/src/liblzma/.libs/" | ||
make clean | ||
autoheader | ||
autoconf | ||
emconfigure ./configure CFLAGS="$CFLAGS -fPIC" LDFLAGS="$LDFLAGS --relocatable" | ||
|
||
|
||
# Build htslib | ||
curl -L -o htslib.tar.bz2 https://github.com/samtools/htslib/releases/download/1.20/htslib-1.20.tar.bz2 | ||
tar -xvf htslib.tar.bz2 && rm htslib.tar.bz2 && mv htslib-1.20 htslib | ||
cd htslib | ||
emmake make -j4 CC=emcc AR=emar \ | ||
CFLAGS="-O2 -fPIC $CFLAGS" \ | ||
LDFLAGS="$EM_FLAGS -O2 -s ERROR_ON_UNDEFINED_SYMBOLS=0 $LDFLAGS --relocatable" | ||
|
||
|
||
git clone https://github.com/google/skia.git | ||
cd skia | ||
VERSION=m93 | ||
git checkout origin/chrome/${VERSION} | ||
python3 tools/git-sync-deps | ||
cd modules/canvaskit/ | ||
sed -i 's/-s LLD_REPORT_UNDEFINED//g' compile.sh | ||
make release -j4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.