diff --git a/.github/workflows/arm64_centos7.yml b/.github/workflows/arm64_centos7.yml index 6fd3c727..5e24f276 100644 --- a/.github/workflows/arm64_centos7.yml +++ b/.github/workflows/arm64_centos7.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -38,9 +38,9 @@ jobs: 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@v4 + uses: actions/upload-artifact@v3 with: - name: Artifacts ${{ matrix.name }} + name: Artifacts Arm64-Centos7 path: | artifacts/build/*kiwi* artifacts/build/test/*kiwi* diff --git a/.github/workflows/centos5.yml b/.github/workflows/centos5.yml deleted file mode 100644 index 874dc64f..00000000 --- a/.github/workflows/centos5.yml +++ /dev/null @@ -1,51 +0,0 @@ -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@v4 - with: - name: Artifacts Centos5 - path: arts.tgz diff --git a/.github/workflows/centos6.yml b/.github/workflows/centos7.yml similarity index 62% rename from .github/workflows/centos6.yml rename to .github/workflows/centos7.yml index f55cc19d..c338b462 100644 --- a/.github/workflows/centos6.yml +++ b/.github/workflows/centos7.yml @@ -1,34 +1,29 @@ -name: Centos6 +name: Centos7 on: pull_request: branches: [ main ] jobs: - build-centos6: - name: Centos6 + build-centos7: + name: Centos7 runs-on: ubuntu-latest container: - image: docker://quay.io/pypa/manylinux2010_x86_64 + image: docker://quay.io/pypa/manylinux2014_x86_64 steps: - - name: Install Git LFS - run: | - mkdir ../gitlfs && pushd ../gitlfs - curl -L https://github.com/git-lfs/git-lfs/releases/download/v2.10.0/git-lfs-linux-amd64-v2.10.0.tar.gz | tar -zxv - ./install.sh - popd - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true with: submodules: true - - name: Pull LFS files - run: git config --global --add safe.directory /__w/Kiwi/Kiwi && git lfs pull + lfs: true - name: Update CMake run: | - /opt/python/cp36-cp36m/bin/pip install cmake + /opt/python/cp310-cp310/bin/pip install cmake yum install java-1.8.0-openjdk-devel.x86_64 -y - name: Configure Build - run: mkdir build && cd build && /opt/python/cp36-cp36m/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_JAVA_BINDING=1 .. + run: mkdir build && cd build && /opt/python/cp310-cp310/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_JAVA_BINDING=1 .. - name: Build run: cd build && make -j2 - name: Run Unit Test @@ -47,7 +42,9 @@ jobs: ./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 build/bindings/java/*.jar - name: Archive binaries - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true with: - name: Artifacts Centos6 + name: Artifacts Centos7 path: arts.tgz diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 0f3566ab..0a8d55f0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -24,7 +24,7 @@ jobs: name: ${{ matrix.name }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -80,7 +80,7 @@ jobs: KIWI_ARCH_TYPE=neon ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out --typos 6 kowiki1000.txt fi - name: Archive binaries - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: Artifacts ${{ matrix.name }} path: | diff --git a/.github/workflows/ppc64le_centos7.yml b/.github/workflows/ppc64le_centos7.yml index 6aeb37d1..0d8770de 100644 --- a/.github/workflows/ppc64le_centos7.yml +++ b/.github/workflows/ppc64le_centos7.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -32,9 +32,9 @@ jobs: cp -r build /artifacts/ cp -r eval_results /artifacts/ - name: Archive binaries - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: - name: Artifacts ${{ matrix.name }} + name: Artifacts PPC64LE-Centos7 path: | artifacts/build/*kiwi* artifacts/build/test/*kiwi* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12ea553d..2aebfe50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,80 +5,30 @@ on: types: [created] jobs: - build-centos: - name: Centos5 + build-centos7: + name: Centos7 runs-on: ubuntu-latest container: - image: docker://hoshizora/manylinux1-clang_x86_64 + image: docker://quay.io/pypa/manylinux2014_x86_64 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true with: submodules: true - - name: Checkout Old Version googletest - run: cd third_party/googletest && git checkout v1.8.x && cd ../.. - - name: Update CMake - run: /opt/python/cp36-cp36m/bin/pip install "cmake<3.20" - - 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 - - run: | - mkdir result - cd result - mkdir include && mkdir lib && mkdir bin - mv ../build/libkiwi* lib/ - mv ../build/kiwi-* bin/ - mv ../build/test/kiwi-* bin/ - cp -r ../include/kiwi include/ - tar -zcvf ../asset.tgz include/ lib/ bin/ - - name: Archive binaries - uses: actions/upload-artifact@v4 - with: - name: asset_Centos5 - path: asset.tgz - - upload-asset-from-centos: - name: Upload asset from Centos5 - needs: build-centos - runs-on: ubuntu-latest - - steps: - - uses: actions/download-artifact@v4 - with: - name: asset_Centos5 - path: arts - name: Get release id: get_release - uses: bruceadams/get-release@v1.2.2 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - - name: Upload release binary - uses: actions/upload-release-asset@v1.0.2 + uses: bruceadams/get-release@v1.3.2 env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: arts/asset.tgz - asset_name: kiwi_lnx_centos5_x86_64_${{ steps.get_release.outputs.tag_name }}.tgz - asset_content_type: application/octet-stream - - build-centos6: - name: Centos6 - runs-on: ubuntu-latest - container: - image: docker://quay.io/pypa/manylinux2010_x86_64 - - steps: - - uses: actions/checkout@v1 - with: - submodules: true - name: Update CMake run: | - /opt/python/cp36-cp36m/bin/pip install cmake + /opt/python/cp310-cp310/bin/pip install cmake yum install java-1.8.0-openjdk-devel.x86_64 -y - name: Configure Build - run: mkdir build && cd build && /opt/python/cp36-cp36m/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_JAVA_BINDING=1 .. + run: mkdir build && cd build && /opt/python/cp310-cp310/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_JAVA_BINDING=1 .. - name: Build run: cd build && make -j2 - run: | @@ -90,54 +40,26 @@ jobs: mv ../build/test/kiwi-* bin/ cp -r ../include/kiwi include/ tar -zcvf ../asset.tgz include/ lib/ bin/ - - name: Archive binaries - uses: actions/upload-artifact@v4 - with: - name: asset_Centos6 - path: asset.tgz - - run: | - mv build/bindings/java/kiwi-java*.jar kiwi-java.jar - - name: Archive jar binaries - uses: actions/upload-artifact@v4 - with: - name: jar_Centos6 - path: kiwi-java.jar - - upload-asset-from-centos6: - name: Upload asset from Centos6 - needs: build-centos6 - runs-on: ubuntu-latest - - steps: - - name: Get release - id: get_release - uses: bruceadams/get-release@v1.2.2 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - - uses: actions/download-artifact@v4 - with: - name: asset_Centos6 - path: arts - name: Upload release binary uses: actions/upload-release-asset@v1.0.2 env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: arts/asset.tgz + asset_path: asset.tgz asset_name: kiwi_lnx_x86_64_${{ steps.get_release.outputs.tag_name }}.tgz asset_content_type: application/octet-stream - - uses: actions/download-artifact@v4 - with: - name: jar_Centos6 - path: arts + - run: | + mv build/bindings/java/kiwi-java*.jar kiwi-java.jar - name: Upload release jar uses: actions/upload-release-asset@v1.0.2 env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} with: upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: arts/kiwi-java.jar + asset_path: kiwi-java.jar asset_name: kiwi-java-${{ steps.get_release.outputs.tag_name }}-lnx-x86-64.jar asset_content_type: application/octet-stream @@ -151,7 +73,7 @@ jobs: name: ${{ matrix.os }} - ${{ matrix.arch }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -216,7 +138,7 @@ jobs: name: ${{ matrix.os }} ${{ matrix.arch }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -276,7 +198,7 @@ jobs: name: Centos7-${{ matrix.arch }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -331,7 +253,7 @@ jobs: name: Emscripten runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a861391e..e7235c25 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -26,7 +26,7 @@ jobs: name: ${{ matrix.name }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -75,7 +75,7 @@ jobs: KIWI_ARCH_TYPE=avx512bw ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out --sbg kowiki1000.txt KIWI_ARCH_TYPE=avx512bw ./build/kiwi-cli-* -m ./ModelGenerator -e -o test.out --typos 6 kowiki1000.txt - name: Archive binaries - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: Artifacts ${{ matrix.name }} path: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a767375d..a1123b4e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -15,7 +15,7 @@ jobs: name: ${{ matrix.os }} ${{ matrix.arch }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: true lfs: true @@ -38,7 +38,7 @@ jobs: .\build\Release\kiwi-evaluator.exe -m .\ModelGenerator (Get-ChildItem eval_data\*.txt | Select-Object -Expand FullName) -o eval_results\ .\build\Release\kiwi-evaluator.exe -m .\ModelGenerator --sbg (Get-ChildItem eval_data\*.txt | Select-Object -Expand FullName) -o eval_results\ - name: Archive binaries - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: Artifacts ${{ matrix.os }} ${{ matrix.arch }}bit path: |