1name: Bazel 2 3on: 4 workflow_dispatch: 5 workflow_call: 6 push: 7 paths: 8 - '**bazel**' 9 pull_request: 10 paths: 11 - '**bazel**' 12 13jobs: 14 build_embedded: 15 runs-on: ${{ matrix.os }} 16 strategy: 17 matrix: 18 os: [ubuntu-20.04, macos-10.15] 19 20 steps: 21 - uses: actions/checkout@v2 22 23 - name: Mount bazel cache 24 uses: actions/cache@v2 25 with: 26 path: "/home/runner/.cache/bazel" 27 key: ${{ runner.os }}-bazel 28 29 - name: Test 30 run: | 31 bazelisk test //... 32 33 - name: Build 34 run: | 35 bazelisk build //... 36