-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build tool on Linux | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
PYTHONPATH: /opt/ikos/lib/python3.10/site-packages/ | ||
MAKEFLAGS: -j4 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install --yes \ | ||
gcc g++ cmake libgmp-dev libboost-dev libboost-filesystem-dev \ | ||
libboost-thread-dev libboost-test-dev \ | ||
libsqlite3-dev libtbb-dev libz-dev libedit-dev \ | ||
python3 python3-pygments python3-distutils python3-pip \ | ||
llvm-14 llvm-14-dev llvm-14-tools clang-14 | ||
- name: Compile IKOS | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="/opt/ikos" \ | ||
-DCMAKE_BUILD_TYPE="Debug" \ | ||
-DLLVM_CONFIG_EXECUTABLE="/usr/lib/llvm-14/bin/llvm-config" \ | ||
.. | ||
make | ||
sudo make install | ||
- name: Add IKOS to the path | ||
run: | | ||
echo "/opt/ikos/bin" >> $GITHUB_PATH | ||
- name: Confirm that it runs | ||
run: | | ||
ikos --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build tool on OSX | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
env: | ||
LDFLAGS: "-L/usr/local/opt/llvm@14/lib" | ||
CPPFLAGS: "-I/usr/local/opt/llvm@14/include" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
pip3 install setuptools | ||
- name: Install dependencies | ||
run: | | ||
brew tap nasa-sw-vnv/core | ||
brew install cmake gmp boost tbb llvm@14 apron sqlite | ||
- name: Adjust path | ||
run: | ||
echo "/usr/local/opt/llvm@14/bin" >> $GITHUB_PATH | ||
- name: Test LLVM | ||
run: | | ||
which llvm-config | ||
- name: Compile IKOS | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="/usr/local/opt/ikos" \ | ||
-DCMAKE_BUILD_TYPE="Debug" \ | ||
-DLLVM_CONFIG_EXECUTABLE="$(which llvm-config)" \ | ||
-DPYTHON_EXECUTABLE:FILEPATH="$(which python3)" \ | ||
.. | ||
make | ||
make install | ||
- name: Add IKOS to the path | ||
run: | | ||
echo "/usr/local/opt/ikos/bin" >> $GITHUB_PATH | ||
- name: Confirm that it runs | ||
run: | | ||
ikos --version |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters