Skip to content

Commit

Permalink
Get circleci working
Browse files Browse the repository at this point in the history
  • Loading branch information
Heffan Henry committed Jan 21, 2022
1 parent fc888d4 commit 5b7de2c
Show file tree
Hide file tree
Showing 10 changed files with 1,419 additions and 39 deletions.
24 changes: 18 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ jobs:
- checkout
- run: |
apt-get -q update -y
apt-get -q install -y libedit-dev zlib1g-dev m4 build-essential
mkdir install
apt-get -q install -y libedit-dev zlib1g-dev m4 build-essential wget
wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-x86_64.tar.gz
tar -xf cmake-3.22.1-linux-x86_64.tar.gz
export PATH="`pwd`/cmake-3.22.1-linux-x86_64/bin:$PATH"
export VLSI_TOOLS_SRC=`pwd`
export ACT_HOME=$VLSI_TOOLS_SRC/install
export LD_LIBRARY_PATH="$ACT_HOME/lib:$LD_LIBRARY_PATH"
mkdir $ACT_HOME
cp act/lang/HACK_expr.h act/lang/expr.h
cp act/lang/HACK_expr.c act/lang/expr.c
./configure $ACT_HOME
./build.sh
cmake --install build
./test.py
./test.sh
centos8:
docker:
Expand All @@ -26,14 +32,20 @@ jobs:
- run: |
yum install -y 'dnf-command(config-manager)'
yum config-manager --set-enabled powertools -y
yum install -y gcc gcc-c++ diffutils make libedit-devel zlib-devel m4
mkdir install
yum install -y gcc gcc-c++ diffutils make libedit-devel zlib-devel m4 wget
wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-x86_64.tar.gz
tar -xf cmake-3.22.1-linux-x86_64.tar.gz
export PATH="`pwd`/cmake-3.22.1-linux-x86_64/bin:$PATH"
export VLSI_TOOLS_SRC=`pwd`
export ACT_HOME=$VLSI_TOOLS_SRC/install
export LD_LIBRARY_PATH="$ACT_HOME/lib:$LD_LIBRARY_PATH"
mkdir $ACT_HOME
cp act/lang/HACK_expr.h act/lang/expr.h
cp act/lang/HACK_expr.c act/lang/expr.c
./configure $ACT_HOME
./build.sh
cmake --install build
./test.py
./test.sh
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ endif()
include_directories(.)

add_compile_options(-g -ubsanitizer=undefined -O2)
add_link_options(-ldl)

add_subdirectory(act)
add_subdirectory(scripts)
2 changes: 1 addition & 1 deletion act/lang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ set(ACT_LANG_LIB_SOURCES
add_library(ActLangLib STATIC ${ACT_LANG_LIB_SOURCES})
add_dependencies(ActLangLib ActLangAutogen)
set_target_properties(ActLangLib PROPERTIES OUTPUT_NAME act)
target_link_libraries(ActLangLib ActCommonLib)
target_link_libraries(ActLangLib ActCommonLib ${CMAKE_DL_LIBS})

add_library(ActLangLibSh SHARED ${ACT_LANG_LIB_SOURCES})
add_dependencies(ActLangLibSh ActLangAutogen)
Expand Down
Loading

0 comments on commit 5b7de2c

Please sign in to comment.