-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation for 64bit souffle wordsizes, add build and test action (
#3) * Add build and test action * Enhance new action * Build and test with souffle package from apt * Try different souffle version * Try different ubuntu image * Try to get correct z3 package * another try * Add example in lists_test.dl that breaks locally * Download souffle 2.4.1 deb file as it's missing in apt. Remove useless installs. * Compile functors with -fopenmp * Run souffle --version in both configs * Parametrize Makefile to work for 32 or 64 bit souffle word sizes. * Polish gh action jobs * try to get action to run * minor
- Loading branch information
Showing
4 changed files
with
77 additions
and
10 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,57 @@ | ||
name: Build and Test Functors | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build-and-test-32bit-wordsize: | ||
# Souffle with a 32bit word size is built inside our "Gigahorse dependencies" docker image | ||
runs-on: ubuntu-22.04 | ||
|
||
container: | ||
image: ghcr.io/nevillegrech/gigahorse-toolchain-deps-souffle24:latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Test Souffle | ||
run: souffle --version | ||
|
||
- name: Build | ||
run: make libsoufflenum.so WORD_SIZE=$(souffle --version | sed -n 3p | cut -c12,13) | ||
- name: Test | ||
run: make WORD_SIZE=$(souffle --version | sed -n 3p | cut -c12,13) | ||
- name: Run lists_test.dl | ||
run: souffle lists_test.dl | ||
- name: Run smt-testing.dl | ||
run: souffle smt-testing.dl | ||
|
||
build-and-test-64bit-wordsize: | ||
# Souffle with a 64bit word size is installed on the runner via the provided .deb files | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download souffle | ||
run: wget -O souffle.deb https://github.com/souffle-lang/souffle/releases/download/2.4.1/x86_64-ubuntu-2004-souffle-2.4.1-Linux.deb | ||
- name: Install souffle | ||
run: sudo apt-get install ./souffle.deb -y | ||
|
||
- name: Test Souffle | ||
run: souffle --version | ||
|
||
- name: Install Boost | ||
run: sudo apt install libboost-all-dev | ||
|
||
- name: Build | ||
run: make libsoufflenum.so WORD_SIZE=$(souffle --version | sed -n 3p | cut -c12,13) | ||
- name: Test | ||
run: make WORD_SIZE=$(souffle --version | sed -n 3p | cut -c12,13) | ||
- name: Run lists_test.dl | ||
run: souffle lists_test.dl | ||
- name: Run smt-testing.dl | ||
run: souffle smt-testing.dl |
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
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
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