Skip to content

Commit

Permalink
Use -c opt for build and -c dbg for test.
Browse files Browse the repository at this point in the history
#codehealth

PiperOrigin-RevId: 632041237
  • Loading branch information
hiroyuki-komatsu committed May 9, 2024
1 parent eb91e31 commit 07c5f89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: build
working-directory: ./src
run: |
bazel build --config oss_android package
bazel build --config oss_android package -c opt
- name: upload artifacts
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: bazel build
working-directory: ./src
run: |
bazel build --config oss_linux package
bazel build --config oss_linux package -c opt
- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -71,4 +71,4 @@ jobs:
- name: bazel test
working-directory: ./src
run: |
bazel test ... --config oss_linux --build_tests_only
bazel test ... --config oss_linux --build_tests_only -c dbg
8 changes: 4 additions & 4 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: bazel build
working-directory: ./src
run: |
bazel build --config oss_macos package --macos_cpus=arm64
bazel build --config oss_macos package --macos_cpus=arm64 -c opt
- name: upload artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: bazel build
working-directory: ./src
run: |
bazel build --config oss_macos package --macos_cpus=x86_64
bazel build --config oss_macos package --macos_cpus=x86_64 -c opt
- name: upload artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: bazel build
working-directory: ./src
run: |
bazel build --config oss_macos package --macos_cpus=x86_64,arm64
bazel build --config oss_macos package --macos_cpus=x86_64,arm64 -c opt
- name: upload artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
- name: bazel test
working-directory: ./src
run: |
bazel test ... --config oss_macos --build_tests_only
bazel test ... --config oss_macos --build_tests_only -c dbg
# actions/cache works without this job, but having this would increase the likelihood of cache hit
# in other jobs. Another approach would be to use "needs:".
Expand Down

0 comments on commit 07c5f89

Please sign in to comment.