Skip to content

154 Migrate CI to aws autoscaling runners #125

154 Migrate CI to aws autoscaling runners

154 Migrate CI to aws autoscaling runners #125

Workflow file for this run

name: Run tests
on:
pull_request:
branches: [ master ]
workflow_dispatch:
env:
SUITE_REPO: "NilFoundation/crypto3"
LIB_PATH: "./libs/blueprint"
CACHE_NAME: "build-job-cache"
concurrency:
group: ${{
( github.ref == 'refs/heads/master' &&
format('{0}/{1}', github.run_id, github.run_attempt) )
||
format('{0}/{1}', github.workflow, github.ref) }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Build suite
uses: actions/checkout@v3
with:
repository: ${{ env.SUITE_REPO }}
submodules: recursive
- name: Checkout source code
uses: actions/checkout@v3
with:
path: ${{ env.LIB_PATH }}
submodules: recursive
- name: Cmake and build
run: ${{ env.LIB_PATH }}/scripts/ci.sh --docker build
# run_tests:
# runs-on: [self-hosted, aws_autoscaling]
# needs: [build]
# strategy:
# fail-fast: false
# matrix:
# target: [
# blueprint_algebra_fields_plonk_field_operations_test,
# blueprint_algebra_fields_plonk_exponentiation_test,
# blueprint_algebra_curves_plonk_unified_addition_test,
# blueprint_algebra_curves_plonk_variable_base_scalar_mul_test,
# blueprint_algebra_curves_plonk_decomposed_variable_base_scalar_mul_test,
# blueprint_verifiers_kimchi_sponge_oracles_test,
# blueprint_hashes_plonk_poseidon_test,
# blueprint_algebra_curves_plonk_endo_scalar_test,
# blueprint_algebra_fields_plonk_range_check_test,
# blueprint_algebra_fields_plonk_non_native_addition_test,
# blueprint_algebra_fields_plonk_non_native_subtraction_test,
# blueprint_algebra_fields_plonk_non_native_multiplication_test,
# blueprint_algebra_fields_plonk_non_native_range_test,
# blueprint_algebra_fields_plonk_non_native_reduction_test,
# blueprint_algebra_fields_plonk_non_native_bit_decomposition_test,
# blueprint_algebra_fields_plonk_non_native_bit_composition_test,
# blueprint_algebra_fields_plonk_non_native_bit_shift_constant_test,
# blueprint_algebra_fields_plonk_non_native_logic_ops_test,
# blueprint_non_native_plonk_scalar_non_native_range_test,
# blueprint_non_native_plonk_bool_scalar_multiplication_test,
# blueprint_hashes_plonk_decomposition_test,
# blueprint_hashes_plonk_sha256_process_test,
# blueprint_hashes_plonk_sha512_process_test,
# blueprint_hashes_plonk_sha256_test,
# blueprint_hashes_plonk_sha512_test,
# blueprint_non_native_plonk_fixed_base_mul_test,
# blueprint_non_native_plonk_complete_addition_test,
# blueprint_non_native_plonk_var_base_mul_per_bit_test,
# blueprint_non_native_plonk_variable_base_multiplication_test,
# blueprint_algebra_fields_plonk_sqrt_test,
# blueprint_algebra_curves_plonk_multi_scalar_multiplication_test,
# blueprint_verifiers_kimchi_base_field_test,
# blueprint_verifiers_kimchi_prepare_batch_scalar_test,
# blueprint_verifiers_kimchi_verify_scalar_test,
# blueprint_verifiers_kimchi_oracles_scalar_test,
# blueprint_verifiers_kimchi_batch_verify_base_field_test,
# blueprint_verifiers_kimchi_batch_verify_scalar_field_test,
# blueprint_verifiers_kimchi_detail_lagrange_denominators_test,
# blueprint_verifiers_kimchi_detail_b_poly_test,
# blueprint_verifiers_kimchi_detail_b_poly_coefficients_test,
# blueprint_verifiers_kimchi_detail_to_group_test,
# blueprint_verifiers_kimchi_detail_public_evaluations_test,
# blueprint_verifiers_kimchi_detail_prev_chal_evals_test,
# blueprint_verifiers_kimchi_detail_ft_eval_test,
# blueprint_verifiers_kimchi_detail_combine_proof_evals_test,
# blueprint_verifiers_kimchi_detail__constraints_index_terms_scalars_test,
# blueprint_verifiers_kimchi_detail_constraints_rpn_expression_test,
# blueprint_verifiers_kimchi_detail_constraints_vanishes_on_last_4_rows_test,
# blueprint_verifiers_kimchi_detail_constraints_unnormalized_lagrange_basis_test,
# blueprint_verifiers_kimchi_detail_constraints_perm_scalars_test,
# blueprint_verifiers_kimchi_detail_constraints_generic_scalars_test,
# blueprint_verifiers_kimchi_detail_oracles_cip_test,
# blueprint_verifiers_kimchi_detail_zk_w3_test,
# blueprint_verifiers_kimchi_detail_zkpm_evaluate_test,
# blueprint_verifiers_kimchi_detail_prepare_scalars_test,
# blueprint_verifiers_kimchi_sponge_compare_test,
# blueprint_verifiers_kimchi_sponge_transcript_fr_test,
# blueprint_verifiers_kimchi_sponge_transcript_fq_test,
# blueprint_verifiers_kimchi_sponge_sponge_test
# ]
# steps:
# - name: Cleanup # TODO - move to scripts on runner
# run: |
# rm -rf ./* || true
# rm -rf ./.??* || true
# - name: Upload checkout job cache
# uses: actions/download-artifact@v3
# with:
# name: ${{ env.CACHE_NAME }}
# - name: Extract artifacts
# run: |
# tar -xf ${{ env.CACHE_NAME }}.tar.gz
# rm ${{ env.CACHE_NAME }}.tar.gz
# - name: Build
# working-directory: ./build
# run: cmake --build . -t ${{ matrix.target }}
# - name: Run test
# working-directory: ./build
# run: |
# cd libs/${{ env.LIB_NAME }}/test
# COLOR='\033[0;33m'
# echo -e "${COLOR}${{ matrix.target }}"
# ./${{ matrix.target }}