mirror of
https://github.com/ProvableHQ/leo.git
synced 2025-01-08 20:11:12 +03:00
Adds a noconfig feature for release builds
This commit is contained in:
parent
19e3bfc253
commit
2aabb09468
@ -1,2 +1,2 @@
|
||||
[target.'cfg(not(target_arch = "wasm32"))']
|
||||
[target.'cfg(any(not(target_arch = "wasm32"), feature = "release"))']
|
||||
rustflags = ["-C", "target-cpu=native"]
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
|
||||
- name: Build Leo
|
||||
run: |
|
||||
cargo build --all --release && strip target/release/leo
|
||||
cargo build --all --release --features noconfig && strip target/release/leo
|
||||
env:
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||
|
||||
@ -67,7 +67,7 @@ jobs:
|
||||
|
||||
- name: Build Leo
|
||||
run: |
|
||||
cargo build --all --release && strip target/release/leo
|
||||
cargo build --all --release --features noconfig && strip target/release/leo
|
||||
env:
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||
|
||||
@ -118,7 +118,7 @@ jobs:
|
||||
|
||||
- name: Build Leo
|
||||
run: |
|
||||
cargo build --all --release
|
||||
cargo build --all --release --features noconfig
|
||||
env:
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
||||
|
||||
|
@ -155,8 +155,10 @@ version = "0.5"
|
||||
version = "0.11.2"
|
||||
|
||||
[features]
|
||||
default = [ ]
|
||||
default = []
|
||||
ci_skip = [ "leo-compiler/ci_skip" ]
|
||||
# This feature flag is used to disable `target-cpu=native` in `.cargo/config`.
|
||||
noconfig = []
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
|
Loading…
Reference in New Issue
Block a user