Skip to content

Commit

Permalink
Put back ADMIXTOOLS into the CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Oct 7, 2024
1 parent 1c51c2c commit b968a4f
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 91 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,56 +48,56 @@ jobs:
if: runner.os == 'macOS'
run: brew install gdal

# - name: Install ADMIXTOOLS dependencies (Linux)
# if: runner.os == 'Linux'
# run: sudo apt-get install libopenblas-dev libgsl-dev liblapack-dev
- name: Install ADMIXTOOLS dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install libopenblas-dev libgsl-dev liblapack-dev

# - name: Install ADMIXTOOLS dependencies (macOS)
# if: runner.os == 'macOS'
# run: brew install openblas gsl lapack bedtools
- name: Install ADMIXTOOLS dependencies (macOS)
if: runner.os == 'macOS'
run: brew install openblas gsl lapack bedtools

# - name: Compile and install ADMIXTOOLS (Linux) # + macOS)
# # if: runner.os != 'Windows'
# if: runner.os == 'Linux'
# run: |
# # create a single directory for all external software
# mkdir -p ~/deps
# cd ~/deps
#
# # download and unpack the ADMIXTOOLS source code
# curl -LO https://github.com/DReichLab/AdmixTools/archive/v7.0.2.tar.gz
# tar xf v7.0.2.tar.gz
# cd AdmixTools-7.0.2
#
# # set compiler flags (compilation on macOS was failing unable to find
# # openblas library files)
# export LDFLAGS="-L/usr/local/opt/openblas/lib"
# export CPPFLAGS="-I/usr/local/opt/openblas/include"
#
# # compile ADMIXTOOLS and move binaries under bin/
# cd src
# make clobber
# make LDLIBS="-llapack" all
# make install
#
# # download testing data for unit tests
# cd ../
# curl -LO https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/AdmixTools_Example_Data.tar_.gz
# tar xf AdmixTools_Example_Data.tar_.gz
#
# # run the Perl script with tests for the compiled binaries
# cd examples
# # fix unportable Perl shebang
# if [[ "$OSTYPE" == "darwin"* ]]; then
# sed -i '' "1s/.*/\#\!\/usr\/bin\/env perl -w/" mklog
# else
# sed -i "1s/.*/\#\!\/usr\/bin\/env perl/" mklog
# fi
# ./mklog
# cd ../
#
# # we need to do this in bash because of $OSTYPE above
# shell: bash
- name: Compile and install ADMIXTOOLS (Linux) # + macOS)
# if: runner.os != 'Windows'
if: runner.os == 'Linux'
run: |
# create a single directory for all external software
mkdir -p ~/deps
cd ~/deps
# download and unpack the ADMIXTOOLS source code
curl -LO https://github.com/DReichLab/AdmixTools/archive/v7.0.2.tar.gz
tar xf v7.0.2.tar.gz
cd AdmixTools-7.0.2
# set compiler flags (compilation on macOS was failing unable to find
# openblas library files)
export LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"
# compile ADMIXTOOLS and move binaries under bin/
cd src
make clobber
make LDLIBS="-llapack" all
make install
# download testing data for unit tests
cd ../
curl -LO https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/AdmixTools_Example_Data.tar_.gz
tar xf AdmixTools_Example_Data.tar_.gz
# run the Perl script with tests for the compiled binaries
cd examples
# fix unportable Perl shebang
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "1s/.*/\#\!\/usr\/bin\/env perl -w/" mklog
else
sed -i "1s/.*/\#\!\/usr\/bin\/env perl/" mklog
fi
./mklog
cd ../
# we need to do this in bash because of $OSTYPE above
shell: bash

- name: Compile and install SLiM on Unix
if: runner.os != 'Windows'
Expand Down
86 changes: 43 additions & 43 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,49 +25,49 @@ jobs:
if: runner.os == 'macOS'
run: brew install gdal

# - name: Install ADMIXTOOLS dependencies
# run: sudo apt-get install libopenblas-dev libgsl-dev liblapack-dev

# - name: Compile and install ADMIXTOOLS
# run: |
# # create a single directory for all external software
# mkdir -p ~/deps
# cd ~/deps
#
# # download and unpack the ADMIXTOOLS source code
# curl -LO https://github.com/DReichLab/AdmixTools/archive/v7.0.2.tar.gz
# tar xf v7.0.2.tar.gz
# cd AdmixTools-7.0.2
#
# # set compiler flags (compilation on macOS was failing unable to find
# # openblas library files)
# export LDFLAGS="-L/usr/local/opt/openblas/lib"
# export CPPFLAGS="-I/usr/local/opt/openblas/include"
#
# # compile ADMIXTOOLS and move binaries under bin/
# cd src
# make clobber
# make LDLIBS="-llapack" all
# make install
#
# # download testing data for unit tests
# cd ../
# curl -LO https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/AdmixTools_Example_Data.tar_.gz
# tar xf AdmixTools_Example_Data.tar_.gz
#
# # run the Perl script with tests for the compiled binaries
# cd examples
# # fix unportable Perl shebang
# if [[ "$OSTYPE" == "darwin"* ]]; then
# sed -i '' "1s/.*/\#\!\/usr\/bin\/env perl -w/" mklog
# else
# sed -i "1s/.*/\#\!\/usr\/bin\/env perl/" mklog
# fi
# ./mklog
# cd ../
#
# # we need to do this in bash because of $OSTYPE above
# shell: bash
- name: Install ADMIXTOOLS dependencies
run: sudo apt-get install libopenblas-dev libgsl-dev liblapack-dev

- name: Compile and install ADMIXTOOLS
run: |
# create a single directory for all external software
mkdir -p ~/deps
cd ~/deps
# download and unpack the ADMIXTOOLS source code
curl -LO https://github.com/DReichLab/AdmixTools/archive/v7.0.2.tar.gz
tar xf v7.0.2.tar.gz
cd AdmixTools-7.0.2
# set compiler flags (compilation on macOS was failing unable to find
# openblas library files)
export LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"
# compile ADMIXTOOLS and move binaries under bin/
cd src
make clobber
make LDLIBS="-llapack" all
make install
# download testing data for unit tests
cd ../
curl -LO https://reich.hms.harvard.edu/sites/reich.hms.harvard.edu/files/inline-files/AdmixTools_Example_Data.tar_.gz
tar xf AdmixTools_Example_Data.tar_.gz
# run the Perl script with tests for the compiled binaries
cd examples
# fix unportable Perl shebang
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "1s/.*/\#\!\/usr\/bin\/env perl -w/" mklog
else
sed -i "1s/.*/\#\!\/usr\/bin\/env perl/" mklog
fi
./mklog
cd ../
# we need to do this in bash because of $OSTYPE above
shell: bash

- name: Compile and install SLiM
run: |
Expand Down

0 comments on commit b968a4f

Please sign in to comment.