mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...3df4ab11eb)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
88 lines
2.8 KiB
YAML
88 lines
2.8 KiB
YAML
name: AWS WASM Tests on CPU
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
RUSTFLAGS: "-C target-cpu=native"
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab as an alternative.
|
|
workflow_dispatch:
|
|
# All the inputs are provided by Slab
|
|
inputs:
|
|
instance_id:
|
|
description: "AWS instance ID"
|
|
type: string
|
|
instance_image_id:
|
|
description: "AWS instance AMI ID"
|
|
type: string
|
|
instance_type:
|
|
description: "AWS instance product type"
|
|
type: string
|
|
runner_name:
|
|
description: "Action runner name"
|
|
type: string
|
|
request_id:
|
|
description: 'Slab request ID'
|
|
type: string
|
|
fork_repo:
|
|
description: 'Name of forked repo as user/repo'
|
|
type: string
|
|
fork_git_sha:
|
|
description: 'Git SHA to checkout from fork'
|
|
type: string
|
|
|
|
jobs:
|
|
wasm-tests:
|
|
concurrency:
|
|
group: ${{ github.workflow }}_${{ github.ref }}_${{ inputs.instance_image_id }}_${{ inputs.instance_type }}
|
|
cancel-in-progress: true
|
|
runs-on: ${{ inputs.runner_name }}
|
|
steps:
|
|
# Step used for log purpose.
|
|
- name: Instance configuration used
|
|
run: |
|
|
echo "ID: ${{ inputs.instance_id }}"
|
|
echo "AMI: ${{ inputs.instance_image_id }}"
|
|
echo "Type: ${{ inputs.instance_type }}"
|
|
echo "Request ID: ${{ inputs.request_id }}"
|
|
echo "Fork repo: ${{ inputs.fork_repo }}"
|
|
echo "Fork git sha: ${{ inputs.fork_git_sha }}"
|
|
|
|
- name: Checkout tfhe-rs
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
|
with:
|
|
repository: ${{ inputs.fork_repo }}
|
|
ref: ${{ inputs.fork_git_sha }}
|
|
|
|
- name: Set up home
|
|
run: |
|
|
echo "HOME=/home/ubuntu" >> "${GITHUB_ENV}"
|
|
|
|
- name: Install latest stable
|
|
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: stable
|
|
default: true
|
|
|
|
- name: Run js on wasm API tests
|
|
run: |
|
|
make test_nodejs_wasm_api_in_docker
|
|
|
|
- name: Run parallel wasm tests
|
|
run: |
|
|
make install_node
|
|
make ci_test_web_js_api_parallel
|
|
|
|
- name: Slack Notification
|
|
if: ${{ always() }}
|
|
continue-on-error: true
|
|
uses: rtCamp/action-slack-notify@b24d75fe0e728a4bf9fc42ee217caa686d141ee8
|
|
env:
|
|
SLACK_COLOR: ${{ job.status }}
|
|
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
|
|
SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png
|
|
SLACK_MESSAGE: "WASM tests finished with status: ${{ job.status }}. (${{ env.ACTION_RUN_URL }})"
|
|
SLACK_USERNAME: ${{ secrets.BOT_USERNAME }}
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|