Specify --compilation_mode=opt for gVisor runsc releases.

This turns on optimizations for release builds.

Detected in [this comment](https://github.com/freedomofpress/dangerzone/pull/590#issuecomment-2149642086).

PiperOrigin-RevId: 642129920
This commit is contained in:
Etienne Perot
2024-06-10 21:51:13 -07:00
committed by gVisor bot
parent ad8efe283b
commit 39c9632ad0
+2 -2
View File
@@ -37,8 +37,8 @@ steps:
label: ":ship: Release"
if: build.branch == "master" || build.tag != null
commands:
- make BAZEL_OPTIONS=--config=x86_64 artifacts/x86_64
- make BAZEL_OPTIONS=--config=aarch64 artifacts/aarch64
- "make BAZEL_OPTIONS='--config=x86_64 --compilation_mode=opt' artifacts/x86_64"
- "make BAZEL_OPTIONS='--config=aarch64 --compilation_mode=opt' artifacts/aarch64"
- make release RELEASE_NIGHTLY=$$RELEASE_NIGHTLY
- cd repo && gsutil cp -r . gs://gvisor/releases/
- <<: *common