tests.yaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. name: test
  5. on:
  6. push:
  7. branches: [trunk]
  8. pull_request:
  9. jobs:
  10. macOS:
  11. name: macOS
  12. runs-on: macOS-latest
  13. steps:
  14. - uses: actions/setup-go@v2
  15. - uses: actions/setup-python@v2
  16. with:
  17. python-version: '3.8.5'
  18. - name: Install More Tools
  19. run: |
  20. go get github.com/bazelbuild/bazelisk
  21. pip install gql PyGitHub
  22. - name: Checkout
  23. uses: actions/checkout@v2
  24. with:
  25. submodules: true
  26. - name: Tool Versions
  27. run: |
  28. $(go env GOPATH)/bin/bazelisk --version
  29. python --version
  30. echo gql "$(pip show gql | grep Version)"
  31. echo PyGitHub "$(pip show PyGitHub | grep Version)"
  32. - name: >-
  33. Build (-c fastbuild: debug / no symbols)
  34. run: |
  35. $(go env GOPATH)/bin/bazelisk build \
  36. --verbose_failures //...:all
  37. - name: >-
  38. Test (-c fastbuild: debug / no symbols)
  39. run: |
  40. $(go env GOPATH)/bin/bazelisk test --test_output errors \
  41. --verbose_failures //...:all
  42. - name: >-
  43. Build (-c opt: release)
  44. run: |
  45. $(go env GOPATH)/bin/bazelisk build \
  46. --verbose_failures -c opt //...:all
  47. - name: >-
  48. Test (-c opt: release)
  49. run: |
  50. $(go env GOPATH)/bin/bazelisk test --test_output errors \
  51. --verbose_failures -c opt //...:all
  52. linux:
  53. name: Linux x86_64
  54. runs-on: ubuntu-latest
  55. steps:
  56. - uses: actions/setup-python@v2
  57. with:
  58. python-version: '3.8.5'
  59. - name: Install More Tools
  60. run: |
  61. pip install gql PyGitHub
  62. - name: Checkout
  63. uses: actions/checkout@v2
  64. with:
  65. submodules: recursive
  66. - name: Tool Versions
  67. run: |
  68. bazelisk --version
  69. python --version
  70. echo gql "$(pip show gql | grep Version)"
  71. echo PyGitHub "$(pip show PyGitHub | grep Version)"
  72. - name: >-
  73. Build (-c fastbuild: debug / no symbols)
  74. run: |
  75. bazelisk build --verbose_failures //...:all
  76. - name: >-
  77. Test (-c fastbuild: debug/no symbols)
  78. run: |
  79. bazelisk test --test_output errors --verbose_failures //...:all
  80. - name: >-
  81. Build (-c opt: release)
  82. run: |
  83. bazelisk build --verbose_failures -c opt //...:all
  84. - name: >-
  85. Test (-c opt: release)
  86. run: |
  87. bazelisk test --test_output errors --verbose_failures -c opt //...:all