Skip to content

Adding user0~4 tag & Supporting for user_value feature #205

Adding user0~4 tag & Supporting for user_value feature

Adding user0~4 tag & Supporting for user_value feature #205

Workflow file for this run

name: Centos5
on:
pull_request:
branches: [ main ]
jobs:
build-centos:
name: Centos5
runs-on: ubuntu-latest
container:
image: docker://hoshizora/manylinux1-clang_x86_64
steps:
- name: Install Git LFS
run: |
mkdir ../gitlfs && pushd ../gitlfs
curl -L https://github.com/git-lfs/git-lfs/releases/download/v2.13.2/git-lfs-linux-amd64-v2.13.2.tar.gz | tar -zxv
./install.sh
popd
- uses: actions/checkout@v1
with:
submodules: true
- name: Pull LFS files
run: git lfs pull
- name: Update CMake
run: /opt/python/cp36-cp36m/bin/pip install "cmake<3.20"
- name: Checkout Old Version googletest
run: cd third_party/googletest && git checkout v1.8.x && cd ../..
- name: Configure Build
run: mkdir build && cd build && /opt/python/cp36-cp36m/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_USE_MIMALLOC=0 -DKIWI_USE_CPUINFO=0 ..
- name: Build
run: cd build && make -j2
- name: Run Unit Test
run: ./build/test/kiwi-test
- name: Run Unit Test in Debug mode
if: failure()
run: |
mkdir build_debug && cd build_debug && /opt/python/cp36-cp36m/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DKIWI_USE_MIMALLOC=0 -DKIWI_USE_CPUINFO=0 .. && make -j2
cd .. && gdb -ex run -ex bt ./build_debug/test/kiwi-test
- name: Run Evaluator
run: |
mkdir eval_results
./build/kiwi-evaluator -m ./ModelGenerator eval_data/*.txt -o eval_results/
./build/kiwi-evaluator -m ./ModelGenerator eval_data/*.txt --sbg -o eval_results/
- run: tar -zcvf arts.tgz build/*kiwi* build/test/*kiwi* eval_results/*.txt
- name: Archive binaries
uses: actions/upload-artifact@v1
with:
name: Artifacts Centos5
path: arts.tgz