Skip to content

Commit

Permalink
Remove centos5,6 from CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Sep 15, 2024
1 parent 278ddcb commit ec55060
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 178 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/arm64_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand Down Expand Up @@ -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*
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/centos5.yml

This file was deleted.

31 changes: 14 additions & 17 deletions .github/workflows/centos6.yml → .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: ${{ matrix.name }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ppc64le_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand All @@ -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*
Expand Down
118 changes: 20 additions & 98 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Upload release binary
uses: actions/[email protected]
uses: bruceadams/[email protected]
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: |
Expand All @@ -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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/download-artifact@v4
with:
name: asset_Centos6
path: arts
- name: Upload release binary
uses: actions/[email protected]
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/[email protected]
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

Expand All @@ -151,7 +73,7 @@ jobs:
name: ${{ matrix.os }} - ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand Down Expand Up @@ -216,7 +138,7 @@ jobs:
name: ${{ matrix.os }} ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: ${{ matrix.name }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: ${{ matrix.os }} ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
lfs: true
Expand All @@ -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: |
Expand Down

0 comments on commit ec55060

Please sign in to comment.