Skip to content

Commit 8bee620

Browse files
committed
Build dependencies with opt-level 3 always
1 parent 0c11b8b commit 8bee620

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
~/.cargo/registry
3030
~/.cargo/git
3131
target
32-
key: ${{ runner.os }}-debug-${{ hashFiles('Cargo.lock') }}
32+
key: ${{ runner.os }}-debug-opt3-${{ hashFiles('Cargo.lock') }}
3333
- name: run rust tests
3434
uses: actions-rs/cargo@v1
3535
with:
@@ -135,8 +135,8 @@ jobs:
135135
target
136136
key: ${{ runner.os }}-wasm-${{ hashFiles('**/Cargo.lock') }}
137137
restore-keys: |
138-
${{ runner.os }}-debug-${{ hashFiles('Cargo.lock') }}
139-
${{ runner.os }}-debug-
138+
${{ runner.os }}-debug-opt3-${{ hashFiles('Cargo.lock') }}
139+
${{ runner.os }}-debug-opt3
140140
- name: install wasm-pack
141141
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
142142
- name: install geckodriver

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ version = "0.2"
4545
name = "rustpython"
4646
path = "src/main.rs"
4747

48+
[profile.dev.package."*"]
49+
opt-level = 3
50+
4851
[patch.crates-io]
4952
# REDOX START, Uncommment when you want to compile/check with redoxer
5053
# # following patches are just waiting on a new version to be released to crates.io

0 commit comments

Comments
 (0)