Skip to content

fixes https://github.com/google/fully-homomorphic-encryption/issues/66 #145

fixes https://github.com/google/fully-homomorphic-encryption/issues/66

fixes https://github.com/google/fully-homomorphic-encryption/issues/66 #145

name: Build and Test
permissions: read-all
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on:
labels: ubuntu-20.04-16core
timeout-minutes: 360
steps:
- name: Check out repository code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # pin@v4.7.0
with:
python-version: '3.10'
- name: Cache bazel build artifacts
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # pin@v3.3.1
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'patches/**') }}
- name: "Run `bazel build`"
run: |
bazel build //...
- name: "Run `bazel test`"
run: |
bazel test //...