ci: drop centos7 from workflow
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
This commit is contained in:
parent
0c9c542334
commit
ba026e686f
|
|
@ -65,36 +65,6 @@ jobs:
|
|||
path: |
|
||||
test/results/*
|
||||
|
||||
# CentOS 7 Docker: old platform still common in EDA environments.
|
||||
linux-centos:
|
||||
if: github.repository_owner != 'The-OpenROAD-Project-private'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Build image
|
||||
run: docker build -f Dockerfile.centos7 --tag sta-centos7 .
|
||||
|
||||
- name: Test in container
|
||||
run: |
|
||||
mkdir -p test/results
|
||||
docker run --rm \
|
||||
-v "$PWD/test/results:/OpenSTA/test/results" \
|
||||
--entrypoint /bin/bash sta-centos7 \
|
||||
-c "cd /OpenSTA/test && ./regression || (cat results/diffs && exit 1)"
|
||||
|
||||
- name: Upload Test Result
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: result-centos7
|
||||
path: |
|
||||
test/results/*
|
||||
|
||||
# Native macOS coverage via Brewfile.
|
||||
macos:
|
||||
if: github.repository_owner != 'The-OpenROAD-Project-private'
|
||||
|
|
|
|||
|
|
@ -1,111 +0,0 @@
|
|||
FROM centos:centos7 AS base-dependencies
|
||||
LABEL author="James Cherry"
|
||||
LABEL maintainer="James Cherry <cherry@parallaxsw.com>"
|
||||
|
||||
# Install dev and runtime dependencies (use vault repos since mirror repos are discontinued)
|
||||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \
|
||||
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \
|
||||
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
|
||||
&& yum update -y \
|
||||
&& yum install -y centos-release-scl epel-release
|
||||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \
|
||||
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \
|
||||
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
|
||||
&& yum install -y devtoolset-11 git wget cmake3 make eigen3-devel tcl swig3 flex zlib-devel valgrind \
|
||||
&& yum clean -y all
|
||||
|
||||
RUN ln -sf /usr/bin/cmake3 /usr/bin/cmake && \
|
||||
ln -sf /usr/bin/ctest3 /usr/bin/ctest
|
||||
|
||||
# Download Bison
|
||||
RUN wget https://mirrors.kernel.org/gnu/bison/bison-3.8.2.tar.gz && \
|
||||
tar -xvf bison-3.8.2.tar.gz && \
|
||||
rm bison-3.8.2.tar.gz
|
||||
|
||||
# Build Bison
|
||||
RUN source /opt/rh/devtoolset-11/enable && \
|
||||
cd bison-3.8.2 && \
|
||||
./configure && \
|
||||
make -j`nproc` && \
|
||||
make install
|
||||
|
||||
# Download CUDD
|
||||
RUN wget https://raw.githubusercontent.com/davidkebo/cudd/main/cudd_versions/cudd-3.0.0.tar.gz && \
|
||||
tar -xvf cudd-3.0.0.tar.gz && \
|
||||
rm cudd-3.0.0.tar.gz
|
||||
|
||||
# Build CUDD
|
||||
RUN source /opt/rh/devtoolset-11/enable && \
|
||||
cd cudd-3.0.0 && \
|
||||
mkdir ../cudd && \
|
||||
./configure && \
|
||||
make -j`nproc` && \
|
||||
make install
|
||||
|
||||
# Download TCL
|
||||
RUN wget https://github.com/tcltk/tcl/archive/refs/tags/core-8-6-16.tar.gz -O tcl8.6.16-src.tar.gz && \
|
||||
mkdir -p tcl8.6.16 && \
|
||||
tar -xvf tcl8.6.16-src.tar.gz -C tcl8.6.16 --strip-components=1 && \
|
||||
rm tcl8.6.16-src.tar.gz
|
||||
|
||||
# Build TCL
|
||||
RUN source /opt/rh/devtoolset-11/enable && \
|
||||
cd tcl8.6.16 && \
|
||||
./unix/configure && \
|
||||
make -j`nproc` && \
|
||||
make install
|
||||
|
||||
# Download and build GTest
|
||||
RUN <<EOF
|
||||
set -e
|
||||
wget https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz
|
||||
tar -xvf v1.14.0.tar.gz
|
||||
source /opt/rh/devtoolset-11/enable
|
||||
cd googletest-1.14.0
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
make -j$(nproc)
|
||||
make install
|
||||
cd ../..
|
||||
rm -rf v1.14.0.tar.gz googletest-1.14.0
|
||||
EOF
|
||||
|
||||
# Download and build fmt
|
||||
# Ensure the Vault redirect is applied to everything including new installs
|
||||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
|
||||
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
|
||||
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo && \
|
||||
yum install -y ca-certificates git && \
|
||||
update-ca-trust force-enable
|
||||
# clone fmt compatible version (10.2.1)
|
||||
RUN git config --global http.sslVerify false && \
|
||||
git clone --depth 1 --branch 10.2.1 https://github.com/fmtlib/fmt.git /tmp/fmt
|
||||
RUN source /opt/rh/devtoolset-11/enable && \
|
||||
cd /tmp/fmt && \
|
||||
mkdir build && cd build && \
|
||||
cmake3 .. \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||
-DFMT_TEST=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DFMT_DOC=OFF && \
|
||||
make -j$(nproc) && \
|
||||
make install
|
||||
RUN rm -rf /tmp/fmt
|
||||
|
||||
################################################################
|
||||
|
||||
FROM base-dependencies AS builder
|
||||
|
||||
COPY . /OpenSTA
|
||||
WORKDIR /OpenSTA
|
||||
|
||||
# Build
|
||||
RUN rm -rf build && mkdir build
|
||||
RUN source /opt/rh/devtoolset-11/enable && \
|
||||
cd build && \
|
||||
cmake .. && \
|
||||
# LTO fails with -j
|
||||
make
|
||||
|
||||
# Run sta on entry
|
||||
ENTRYPOINT ["/OpenSTA/build/sta"]
|
||||
Loading…
Reference in New Issue