mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
The term "bpr" means Branch Protection Rule. It helps one to identify any job that must pass before being able to merge to the base branch.
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
# Build tfhe-fft
|
|
name: cargo_build_tfhe_fft
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CHECKOUT_TOKEN: ${{ secrets.REPO_CHECKOUT_TOKEN || secrets.GITHUB_TOKEN }}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cargo-builds-fft:
|
|
name: cargo_build_tfhe_fft/cargo-builds-fft (bpr)
|
|
runs-on: ${{ matrix.runner_type }}
|
|
|
|
strategy:
|
|
matrix:
|
|
runner_type: [ubuntu-latest, macos-latest, windows-latest]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
with:
|
|
persist-credentials: 'false'
|
|
token: ${{ env.CHECKOUT_TOKEN }}
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- name: Run pcc checks
|
|
if: matrix.runner_type == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt install -y libfftw3-dev
|
|
make pcc_fft
|
|
|
|
- name: Build release
|
|
run: |
|
|
make build_fft
|
|
|
|
- name: Build release no-std
|
|
run: |
|
|
make build_fft_no_std
|