Skip to content

Commit 7099e4c

Browse files
committed
Do release build when testing.
1 parent 7661cb4 commit 7099e4c

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,40 @@ jobs:
263263
cd prusti-contracts/prusti-contracts-test/
264264
cargo +stable build
265265
266+
release-build:
267+
strategy:
268+
matrix:
269+
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-latest]
270+
fail-fast: false
271+
runs-on: ${{ matrix.os }}
272+
steps:
273+
- name: Check out the repo
274+
uses: actions/checkout@v3
275+
276+
- name: Set up Python 3
277+
uses: actions/setup-python@v4
278+
with:
279+
python-version: '3.x'
280+
281+
- name: Set up Java
282+
uses: actions/setup-java@v3
283+
with:
284+
java-version: '15'
285+
distribution: 'zulu'
286+
287+
- name: Set up the environment
288+
run: python x.py setup
289+
290+
- name: Build workspace with cargo --release
291+
run: python x.py build --release --jobs=1 --workspace --exclude prusti-contracts-build --verbose
292+
env:
293+
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG: true
294+
295+
- name: Build contracts with cargo --release
296+
run: python x.py build --release --jobs=1 --package prusti-contracts-build --verbose
297+
env:
298+
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG: true
299+
266300
# Run Prusti on itself.
267301
# Disabled because of a bug when compiling jni-gen
268302
test-on-prusti:

prusti-contracts-build/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
);
1313

1414
let target: PathBuf = ["..", "target"].iter().collect();
15-
force_reexport_specs(target.join("verify").as_path());
15+
//force_reexport_specs(target.join("verify").as_path());
1616

1717
// Copy just-built binaries to `target/dir` dir
1818
let bin_dir = if cfg!(debug_assertions) {

0 commit comments

Comments
 (0)