|
22 | 22 |
|
23 | 23 | - name: Build all generic binaries |
24 | 24 | run: | |
25 | | - cargo build --release |
| 25 | + RUSTFLAGS="-C opt-level=3 -C codegen-units=1 -C embed-bitcode -C lto=fat -Zdylib-lto" cargo build --release |
26 | 26 |
|
27 | 27 | - name: Authenticate with GCS |
28 | 28 | uses: "google-github-actions/auth@v2" |
|
52 | 52 |
|
53 | 53 | - name: Build stwo_run_and_prove for znver5 architecture |
54 | 54 | 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 -Zdylib-lto" cross build --release --bin stwo_run_and_prove |
56 | 56 |
|
57 | 57 | - name: Upload stwo_run_and_prove_znver5 binary to GCP |
58 | 58 | id: upload_stwo_run_and_prove_znver5 |
|
63 | 63 |
|
64 | 64 | - name: Build stwo_run_and_prove for znver3 architecture |
65 | 65 | 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 -Zdylib-lto" cross build --release --bin stwo_run_and_prove |
67 | 67 |
|
68 | 68 | - name: Upload stwo_run_and_prove_znver3 binary to GCP |
69 | 69 | id: upload_stwo_run_and_prove_znver3 |
|
74 | 74 |
|
75 | 75 | - name: Build stwo_run_and_prove for emeraldrapids architecture |
76 | 76 | 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 -Zdylib-lto" cross build --release --bin stwo_run_and_prove |
78 | 78 |
|
79 | 79 | - name: Upload stwo_run_and_prove_emeraldrapids binary to GCP |
80 | 80 | id: upload_stwo_run_and_prove_emeraldrapids |
|
85 | 85 |
|
86 | 86 | - name: Build stwo_run_and_prove for sapphirerapids architecture |
87 | 87 | 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 -Zdylib-lto" cross build --release --bin stwo_run_and_prove |
89 | 89 |
|
90 | 90 | - name: Upload stwo_run_and_prove_sapphirerapids binary to GCP |
91 | 91 | id: upload_stwo_run_and_prove_sapphirerapids |
|
0 commit comments