Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@ jobs:
uses: actions/checkout@v4
with:
path: ASPIS
- name: Cache LLVM build
uses: actions/cache@v4
id: llvm-cache
with:
path: /mnt/build/
key: llvm-build-${{ hashFiles('llvm-project/**', 'ASPIS/CMakeLists.txt') }}
restore-keys: |
llvm-build-
- name: Checking out LLVM project
uses: actions/checkout@master
if: steps.llvm-cache.outputs.cache-hit != 'true'
with:
repository: llvm/llvm-project
ref: llvmorg-16.0.6
path: llvm-project
- name: Compiling LLVM
if: steps.llvm-cache.outputs.cache-hit != 'true'
shell: bash
working-directory: ./llvm-project
run: |
Expand All @@ -37,4 +47,23 @@ jobs:
mkdir build
cmake -B build -DLLVM_DIR=/mnt/build/lib/cmake/llvm/
cmake --build build

- name: Cache pip
uses: actions/cache@v4
id: pip-cache
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('ASPIS/testing/requirements.txt') }}
restore-keys: |
pip-
- name: Install Python requirements
shell: bash
if: steps.llvm-cache.outputs.cache-hit != 'true'
working-directory: ./ASPIS/testing
run: |
pip install -r requirements.txt
- name: Testing ASPIS
shell: bash
working-directory: ./ASPIS/testing
run: |
pytest test.py

2 changes: 1 addition & 1 deletion testing/config/llvm.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#llvm_bin = "<path/to/your/llvm/bin>"
llvm_bin = "/mnt/build/lib/cmake/llvm/"
llvm_bin = "/mnt/build/bin/"