Dev 0.16.0 #193
Workflow file for this run
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: Arm64-Centos7 | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-centos: | |
name: Arm64-Centos7 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
lfs: true | |
- uses: bab2min/run-on-arch-action@use-custom-image | |
id: runcmd | |
with: | |
image: quay.io/pypa/manylinux2014_aarch64 | |
githubToken: ${{ github.token }} | |
setup: | | |
mkdir -p "${PWD}/artifacts" | |
dockerRunArgs: | | |
--volume "${PWD}/artifacts:/artifacts" | |
run: | | |
yum install java-1.8.0-openjdk-devel -y | |
mkdir build && pushd build && cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_USE_MIMALLOC=0 -DKIWI_JAVA_BINDING=1 .. | |
make -j2 && popd | |
./build/test/kiwi-test | |
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/ | |
mkdir eval_results_balanced && KIWI_ARCH_TYPE=balanced ./build/kiwi-evaluator -m ./ModelGenerator eval_data/*.txt -o eval_results_balanced/ | |
cp -r build /artifacts/ | |
cp -r eval_results /artifacts/ | |
curl -OL https://latina.bab2min.pe.kr/_data/kowiki1000.txt | |
KIWI_ARCH_TYPE=none ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out kowiki1000.txt | |
KIWI_ARCH_TYPE=balanced ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out kowiki1000.txt | |
KIWI_ARCH_TYPE=neon ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out kowiki1000.txt | |
- name: Archive binaries | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Artifacts ${{ matrix.name }} | |
path: | | |
artifacts/build/*kiwi* | |
artifacts/build/test/*kiwi* | |
artifacts/eval_results/*.txt | |
artifacts/build/binding/java/*.jar |