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 5d0e772
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 158 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/centos5.yml

This file was deleted.

21 changes: 7 additions & 14 deletions .github/workflows/centos6.yml → .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,22 @@ on:

jobs:
build-centos6:
name: Centos6
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@v2
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 @@ -49,5 +42,5 @@ jobs:
- name: Archive binaries
uses: actions/upload-artifact@v4
with:
name: Artifacts Centos6
name: Artifacts Centos7
path: arts.tgz
103 changes: 10 additions & 93 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,80 +5,27 @@ 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
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:
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 +37,24 @@ 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:
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:
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 Down

0 comments on commit 5d0e772

Please sign in to comment.