Skip to content

update apt cache before changing deps #99

update apt cache before changing deps

update apt cache before changing deps #99

name: testing_and_building_repo
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
name: Workflow on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: install libgd-dev and liblzma-dev
run: |
# https://github.com/actions/runner-images/issues/2139
sudo apt-get update
sudo apt-get remove -y nginx libgd3
sudo apt-get install -y libgd-dev liblzma-dev libcurl4-openssl-dev
- name: clone samtools branch
run: |
export HTSLIB=${{ github.workspace }}/htslib
git clone --branch $HTSLIB_BRANCH https://github.com/samtools/htslib.git $HTSLIB
env:
HTSLIB_BRANCH: develop
- name: make HTSLIB
run: |
export HTSLIB=${{ github.workspace }}/htslib
export HTSDIR=${{ github.workspace }}/htslib/b
cd $HTSLIB
git submodule update --init --recursive
(autoreconf -i && mkdir b && ./configure --prefix=$HTSDIR && make && make install)
- name: make and configure
run: |
export HTSDIR=${{ github.workspace }}/htslib/b
autoreconf -i
./configure --with-htslib=$HTSDIR
make
make check
#make distcheck #TODO
# running ./Build dist and exporting files
- name: run ./Build dist
run: |
make dist
export DIST_FILE=$(ls bambi-*.tar.gz)
export SHA256_FILE=$DIST_FILE.sha256
shasum -a 256 $DIST_FILE > $SHA256_FILE