mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 46.0.5 to 47.0.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](ed68ef82c0...24d32ffd49)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: 47.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
# Test HPU backend HLAPI layer
|
|
name: hpu_hlapi_tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
|
|
CHECKOUT_TOKEN: ${{ secrets.REPO_CHECKOUT_TOKEN || secrets.GITHUB_TOKEN }}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}${{ github.ref == 'refs/heads/main' && github.sha || '' }}
|
|
cancel-in-progress: true
|
|
|
|
|
|
permissions: { }
|
|
|
|
jobs:
|
|
should-run:
|
|
name: hpu_hlapi_tests/should-run
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
outputs:
|
|
hpu_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.hpu_any_changed }}
|
|
steps:
|
|
- name: Checkout tfhe-rs
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: 'false'
|
|
token: ${{ env.CHECKOUT_TOKEN }}
|
|
|
|
- name: Check for file changes
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
|
|
with:
|
|
files_yaml: |
|
|
hpu:
|
|
- tfhe/Cargo.toml
|
|
- Makefile
|
|
- backends/tfhe-hpu-backend/**
|
|
- mockups/tfhe-hpu-mockup/**
|
|
|
|
cargo-tests-hpu:
|
|
name: hpu_hlapi_tests/cargo-tests-hpu (bpr)
|
|
needs: should-run
|
|
if: needs.should-run.outputs.hpu_test == 'true'
|
|
runs-on: large_ubuntu_16
|
|
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: Install Just
|
|
run: |
|
|
cargo install just
|
|
|
|
- name: Test HLAPI HPU
|
|
run: |
|
|
source setup_hpu.sh
|
|
just -f mockups/tfhe-hpu-mockup/Justfile BUILD_PROFILE=release mockup &
|
|
make HPU_CONFIG=sim test_high_level_api_hpu
|
|
make HPU_CONFIG=sim test_user_doc_hpu
|