Skip to content

Commit c6151aa

Browse files
committed
Install CReduce ourselves
1 parent a83ef4d commit c6151aa

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,11 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323
cache: 'pip'
2424

25-
- name: Cache apt packages
26-
uses: actions/cache@v3
27-
with:
28-
path: /var/cache/apt
29-
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/ci.yml') }}
30-
restore-keys: |
31-
${{ runner.os }}-apt-
32-
3325
- name: Install system dependencies
3426
run: |
3527
sudo apt-get update
36-
sudo apt-get install -y minisat creduce libllvm18 llvm-18-dev llvm-18
28+
sudo apt-get install -y minisat libllvm18 llvm-18-dev llvm-18
29+
./scripts/install-creduce.sh
3730
3831
- name: Cache pip dependencies
3932
uses: actions/cache@v3

scripts/install-creduce.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -e /usr/libexec/clang_delta ] && /usr/libexec/clang_delta --help ; then
4+
5+
echo "CReduce already installed and working"
6+
7+
else
8+
9+
set -e -u -x
10+
11+
cd $(mktemp -d)
12+
git clone https://github.com/csmith-project/creduce.git
13+
cd creduce
14+
./configure
15+
make
16+
sudo make install
17+
18+
fi

0 commit comments

Comments
 (0)