|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: SHELL-Encryption |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: [ "master" ] |
| 20 | + pull_request: |
| 21 | + branches: [ "master" ] |
| 22 | + |
| 23 | +concurrency: |
| 24 | + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} |
| 25 | + cancel-in-progress: true |
| 26 | + |
| 27 | +jobs: |
| 28 | + build: |
| 29 | + runs-on: |
| 30 | + labels: ubuntu-24.04-64core |
| 31 | + steps: |
| 32 | + - name: Check out repository code |
| 33 | + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3 |
| 34 | + |
| 35 | + - name: Cache bazel build artifacts |
| 36 | + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # [email protected] |
| 37 | + with: |
| 38 | + path: | |
| 39 | + ~/.cache/bazel |
| 40 | + key: ${{ runner.os }}-${{ hashFiles('.bazelrc', 'MODULE.bazel.lock') }}-${{ github.sha }} |
| 41 | + restore-keys: | |
| 42 | + ${{ runner.os }}-${{ hashFiles('.bazelrc', 'MODULE.bazel.lock') }}- |
| 43 | +
|
| 44 | + - name: "Run `bazel build`" |
| 45 | + run: | |
| 46 | + bazel build -c opt //... |
| 47 | +
|
| 48 | + - name: "Run `bazel test`" |
| 49 | + run: | |
| 50 | + bazel test -c opt //... |
0 commit comments