From 4b13500defbb9d204d388b06ea2690bdba531650 Mon Sep 17 00:00:00 2001 From: Ole Richter Date: Sun, 11 Sep 2022 19:50:38 +0200 Subject: [PATCH] added ci config inspired from actsim ci --- .circleci/config.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..3f293d6 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,61 @@ +version: 2 + +jobs: + ubuntu22: + # Ubuntu 22 + docker: + - image: ubuntu:22.04 + steps: + - checkout + - run: + name: Dependencies + command: | + apt-get -q update -y + DEBIAN_FRONTEND=noninteractive apt-get -q install -y libedit-dev zlib1g-dev m4 build-essential git terminfo + - run: + name: Install act base + command: | + git clone https://github.com/asyncvlsi/act --depth 1 + mkdir install + export ACT_HOME=`pwd`/install + cd act + echo "===== build act base =====" + export VLSI_TOOLS_SRC=`pwd` + ./configure $ACT_HOME + ./build + echo "===== install act base =====" + make install + cd .. + - run: + name: Install act stdlib + command: | + git clone https://github.com/asyncvlsi/stdlib --depth 1 + export ACT_HOME=`pwd`/install + export PATH=$ACT_HOME/bin:$PATH + export VLSI_TOOLS_SRC=`pwd`/act + cd stdlib + echo "===== install act stdlib =====" + make install + cd .. + - run: + name: Build install and test + command: | + export ACT_HOME=`pwd`/install + export PATH=$ACT_HOME/bin:$PATH + export VLSI_TOOLS_SRC=`pwd`/act + echo "===== build act addon =====" + make + echo "===== install act addon =====" + make install + echo "===== test act addon =====" + export ACT_TEST_VERBOSE=1 + make runtest + export ACT_TEST_INSTALL=1 + make runtest + +workflows: + version: 2 + build: + jobs: + - ubuntu22 +