@@ -3,7 +3,7 @@ name: Upload-Artifacts
33on :
44 push :
55 branches :
6- - noamp/only_codegen_for_all
6+ - noamp/only_opt_and_lto_for_all
77
88jobs :
99 artifacts-push :
2222
2323 - name : Build all generic binaries
2424 run : |
25- RUSTFLAGS="-C codegen-units=1 " cargo build --release
25+ RUSTFLAGS="-C opt-level=3 -C embed-bitcode -C lto=fat -Zdylib-lto " cargo build --release
2626
2727 - name : Authenticate with GCS
2828 uses : " google-github-actions/auth@v2"
5252
5353 - name : Build stwo_run_and_prove for znver5 architecture
5454 run : |
55- RUSTFLAGS="-C target-cpu=znver5 -C codegen-units=1 " cross build --release --bin stwo_run_and_prove
55+ RUSTFLAGS="-C target-cpu=znver5 -C opt-level=3 -C embed-bitcode -C lto=fat -Zdylib-lto " 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
6363
6464 - name : Build stwo_run_and_prove for znver3 architecture
6565 run : |
66- RUSTFLAGS="-C target-cpu=znver3 -C codegen-units=1 " cross build --release --bin stwo_run_and_prove
66+ RUSTFLAGS="-C target-cpu=znver3 -C opt-level=3 -C embed-bitcode -C lto=fat -Zdylib-lto " 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
7474
7575 - name : Build stwo_run_and_prove for emeraldrapids architecture
7676 run : |
77- RUSTFLAGS="-C target-cpu=emeraldrapids -C codegen-units=1 " cross build --release --bin stwo_run_and_prove
77+ RUSTFLAGS="-C target-cpu=emeraldrapids -C opt-level=3 -C embed-bitcode -C lto=fat -Zdylib-lto " 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
8585
8686 - name : Build stwo_run_and_prove for sapphirerapids architecture
8787 run : |
88- RUSTFLAGS="-C target-cpu=sapphirerapids -C codegen-units=1 " cross build --release --bin stwo_run_and_prove
88+ RUSTFLAGS="-C target-cpu=sapphirerapids -C opt-level=3 -C embed-bitcode -C lto=fat -Zdylib-lto " 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