diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d558b28..cb1a920 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: | @@ -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 + diff --git a/testing/config/llvm.toml b/testing/config/llvm.toml index 492d812..eed5e4f 100644 --- a/testing/config/llvm.toml +++ b/testing/config/llvm.toml @@ -1,2 +1,2 @@ #llvm_bin = "" -llvm_bin = "/mnt/build/lib/cmake/llvm/" +llvm_bin = "/mnt/build/bin/"