Skip to content

Commit da46777

Browse files
compilation: added lto optimization flags
1 parent 482ce06 commit da46777

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/upload_artifacts_workflow.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Upload-Artifacts
33
on:
44
push:
55
branches:
6-
- main
6+
- noamp/more_optimization_flags
77

88
jobs:
99
artifacts-push:
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Build all generic binaries
2424
run: |
25-
cargo build --release
25+
RUSTFLAGS="-C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat" cargo build --release
2626
2727
- name: Authenticate with GCS
2828
uses: "google-github-actions/auth@v2"
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Build stwo_run_and_prove for znver5 architecture
5454
run: |
55-
RUSTFLAGS="-C target-cpu=znver5 -C opt-level=3 -C codegen-units=1" cross build --release --bin stwo_run_and_prove
55+
RUSTFLAGS="-C target-cpu=znver5 -C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat" cross build --release --bin stwo_run_and_prove
5656
5757
- name: Upload stwo_run_and_prove_znver5 binary to GCP
5858
id: upload_stwo_run_and_prove_znver5
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Build stwo_run_and_prove for znver3 architecture
6565
run: |
66-
RUSTFLAGS="-C target-cpu=znver3 -C opt-level=3 -C codegen-units=1" cross build --release --bin stwo_run_and_prove
66+
RUSTFLAGS="-C target-cpu=znver3 -C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat" cross build --release --bin stwo_run_and_prove
6767
6868
- name: Upload stwo_run_and_prove_znver3 binary to GCP
6969
id: upload_stwo_run_and_prove_znver3
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Build stwo_run_and_prove for emeraldrapids architecture
7676
run: |
77-
RUSTFLAGS="-C target-cpu=emeraldrapids -C opt-level=3 -C codegen-units=1" cross build --release --bin stwo_run_and_prove
77+
RUSTFLAGS="-C target-cpu=emeraldrapids -C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat" cross build --release --bin stwo_run_and_prove
7878
7979
- name: Upload stwo_run_and_prove_emeraldrapids binary to GCP
8080
id: upload_stwo_run_and_prove_emeraldrapids
@@ -85,7 +85,7 @@ jobs:
8585

8686
- name: Build stwo_run_and_prove for sapphirerapids architecture
8787
run: |
88-
RUSTFLAGS="-C target-cpu=sapphirerapids -C opt-level=3 -C codegen-units=1" cross build --release --bin stwo_run_and_prove
88+
RUSTFLAGS="-C target-cpu=sapphirerapids -C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat" cross build --release --bin stwo_run_and_prove
8989
9090
- name: Upload stwo_run_and_prove_sapphirerapids binary to GCP
9191
id: upload_stwo_run_and_prove_sapphirerapids

0 commit comments

Comments
 (0)