Skip to content

Commit 81624af

Browse files
Test Souffle feature on CI
1 parent c6e3917 commit 81624af

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ master ]
66
pull_request:
7-
7+
88
jobs:
99
rustfmt:
1010
name: Check formatting
@@ -56,11 +56,17 @@ jobs:
5656
strategy:
5757
matrix:
5858
rust: [beta, nightly]
59+
features: [[], ['polonius-souffle']]
5960
steps:
6061
- uses: actions/checkout@v2
6162
with:
6263
fetch-depth: 1
6364

65+
- name: Install Souffle
66+
run: |
67+
curl -s https://packagecloud.io/install/repositories/souffle-lang/souffle/script.deb.sh | sudo bash
68+
sudo apt-get install souffle
69+
6470
- name: Install rust toolchain
6571
uses: actions-rs/toolchain@v1
6672
with:
@@ -69,7 +75,7 @@ jobs:
6975
override: true
7076

7177
- name: Build polonius
72-
run: cargo build
78+
run: cargo build --features "${{ join(matrix.features) }}"
7379

7480
- name: Execute tests for all crates in the workspace
75-
run: cargo test --all
81+
run: cargo test --all --features "${{ join(matrix.features) }}"

0 commit comments

Comments
 (0)