Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
if [[ "${{ matrix.flavor }}" == "dev" ]]; then
bazel build -- //:oppia_${{ matrix.flavor }}
else
# Build the deployable (pre-Proguard-map) AAB first, then shutdown Bazel to release
# Build the oppia_flavor_binary_deploy.jar first (pre-Proguard-map), then shutdown Bazel to release
# JVM memory accumulated during the heavy Proguard step. This avoids OOM crashes
# error code 14 when building the final AAB that packages the Proguard map.
bazel build --compilation_mode=opt -- //:oppia_${{ matrix.flavor }}_deployable
# when building the final AAB that packages the Proguard map.
bazel build --compilation_mode=opt -- //:oppia_${{ matrix.flavor }}_binary_deploy.jar
bazel shutdown
bazel build --compilation_mode=opt -- //:oppia_${{ matrix.flavor }}
fi
24 changes: 12 additions & 12 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ jobs:
run: |
cd head
git log -n 1
# Build dev (no Proguard) and Proguard-enabled deployable targets first.
bazel build -- //:oppia_dev //:oppia_alpha_deployable //:oppia_beta_deployable //:oppia_ga_deployable
cp bazel-bin/oppia_dev.aab ../develop/oppia_dev_with_changes.aab
# Shutdown Bazel to release JVM memory accumulated during Proguard, then build the
# lightweight final AABs that package the Proguard map. This avoids OOM crashes
# (error code 14).
bazel build -- //:oppia_dev
# Build the oppia_flavor_binary_deploy.jar first (pre-Proguard-map), then shutdown Bazel to release
# JVM memory accumulated during the heavy Proguard step. This avoids OOM crashes
# when building the final AAB that packages the Proguard map.
bazel build -- //:oppia_alpha_binary_deploy.jar //:oppia_beta_binary_deploy.jar //:oppia_ga_binary_deploy.jar
bazel shutdown
bazel build -- //:oppia_alpha //:oppia_beta //:oppia_ga
cp bazel-bin/oppia_dev.aab ../develop/oppia_dev_with_changes.aab
cp bazel-bin/oppia_alpha.aab ../develop/oppia_alpha_with_changes.aab
cp bazel-bin/oppia_beta.aab ../develop/oppia_beta_with_changes.aab
cp bazel-bin/oppia_ga.aab ../develop/oppia_ga_with_changes.aab
Expand All @@ -230,14 +230,14 @@ jobs:
run: |
cd base
git log -n 1
# Build dev (no Proguard) and Proguard-enabled deployable targets first.
bazel build -- //:oppia_dev //:oppia_alpha_deployable //:oppia_beta_deployable //:oppia_ga_deployable
cp bazel-bin/oppia_dev.aab ../develop/oppia_dev_without_changes.aab
# Shutdown Bazel to release JVM memory accumulated during Proguard, then build the
# lightweight final AABs that package the Proguard map. This avoids OOM crashes
# (error code 14).
bazel build -- //:oppia_dev
# Build the oppia_flavor_binary_deploy.jar first (pre-Proguard-map), then shutdown Bazel to release
# JVM memory accumulated during the heavy Proguard step. This avoids OOM crashes
# when building the final AAB that packages the Proguard map.
bazel build -- //:oppia_alpha_binary_deploy.jar //:oppia_beta_binary_deploy.jar //:oppia_ga_binary_deploy.jar
bazel shutdown
bazel build -- //:oppia_alpha //:oppia_beta //:oppia_ga
cp bazel-bin/oppia_dev.aab ../develop/oppia_dev_without_changes.aab
cp bazel-bin/oppia_alpha.aab ../develop/oppia_alpha_without_changes.aab
cp bazel-bin/oppia_beta.aab ../develop/oppia_beta_without_changes.aab
cp bazel-bin/oppia_ga.aab ../develop/oppia_ga_without_changes.aab
Expand Down
Loading