Account for removal of std::binary_function in C++17 #13
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
name: Vcflib CI | |
on: [push, pull_request] | |
jobs: | |
arch: | |
name: vcflib-CI | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.8] | |
steps: | |
- name: apt update | |
run: sudo apt-get -o Acquire::Retries=3 update | |
- name: install dependencies | |
run: sudo apt-get -o Acquire::Retries=3 install -y -V | |
cmake | |
libhts-dev | |
libtabixpp-dev | |
libtabixpp0 | |
pybind11-dev | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install zig using wget | |
run: | | |
wget -q https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1313+bb15e4057.tar.xz | |
tar xf zig-linux-x86_64-*.tar.xz | |
./zig-linux-x86_64-*/zig version | |
pwd | |
ls -l zig-linux-* | |
echo "$(pwd)/zig-linux-x86_64-0.11.0-dev.1313+bb15e4057" >> $GITHUB_PATH | |
# echo "$(pwd)/zig-linux-x86_64-*" >> $GITHUB_PATH | |
# echo "::add-path::./zig-linux*" | |
echo GITHUB_PATH=$GITHUB_PATH | |
# zig version | |
# echo "{environment_variable_name}={value}" >> $GITHUB_ENV | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Configure | |
run: | | |
echo $(pwd)/zig-linux-x86_64-* >> $GITHUB_PATH | |
echo "$(pwd)/zig-linux-x86_64-0.11.0-dev.1313+bb15e4057" >> $GITHUB_PATH | |
echo GITHUB_PATH=$GITHUB_PATH | |
echo PATH=$PATH | |
zig version | |
mkdir -p build | |
cd build | |
cmake .. | |
- name: Compile | |
run: cmake --build build/ --verbose -- -j 2 | |
- name: Run tests | |
run: | | |
cd build | |
ctest --verbose |