Skip to content

Update repos math, zk, hash, multiprecision to latest master. Memory access fixed in hashes, lookup argument updates in zk, returning a reference in in-place operators in math, removed ASM code in multiprecision.. #58

Update repos math, zk, hash, multiprecision to latest master. Memory access fixed in hashes, lookup argument updates in zk, returning a reference in in-place operators in math, removed ASM code in multiprecision..

Update repos math, zk, hash, multiprecision to latest master. Memory access fixed in hashes, lookup argument updates in zk, returning a reference in in-place operators in math, removed ASM code in multiprecision.. #58

Workflow file for this run

name: Run tests
on:
# Let's run it on any commit
[pull_request]
# Triggers the workflow on pull request events but only for the master branch
#pull_request:
# branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
env:
SUITE_REPO: "NilFoundation/crypto3"
CACHE_NAME: "checkout-job-cache"
jobs:
checkout:
runs-on: [self-hosted, tests-runner]
steps:
- name: Cleanup # TODO - move to scripts on runner
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout suite
uses: actions/checkout@v3
with:
repository: ${{ env.SUITE_REPO }}
submodules: recursive
- name: Cmake and build
env:
CMAKE_ARGS: "
-DCMAKE_BUILD_TYPE=Debug
-DBUILD_SHARED_LIBS=FALSE
-DBUILD_TESTS=TRUE
-DZK_PLACEHOLDER_PROFILING=TRUE
"
run: |
mkdir build
cd build
cmake ${{ env.CMAKE_ARGS }} ..
- name: Archive build results
run: |
touch ${{ env.CACHE_NAME }}.tar.gz
tar -czf ${{ env.CACHE_NAME }}.tar.gz --exclude=${{ env.CACHE_NAME }}.tar.gz .
- name: Cache archived job output
uses: actions/upload-artifact@v3
with:
name: ${{ env.CACHE_NAME }}
path: ${{ env.CACHE_NAME }}.tar.gz
retention-days: 1
run_tests:
runs-on: [self-hosted, tests-runner]
needs: [checkout]
strategy:
fail-fast: false
matrix:
include:
- target: crypto3_zk_commitment_fold_polynomial_test
path: libs/zk/test
- target: crypto3_zk_commitment_fri_test
path: libs/zk/test
- target: crypto3_zk_commitment_lpc_test
path: libs/zk/test
- target: crypto3_zk_systems_plonk_placeholder_placeholder_test
path: libs/zk/test
- target: crypto3_zk_commitment_powers_of_tau_test
path: libs/zk/test
- target: crypto3_zk_commitment_proof_of_knowledge_test
path: libs/zk/test
- target: crypto3_zk_commitment_r1cs_gg_ppzksnark_mpc_test
path: libs/zk/test
- target: crypto3_zk_math_expression_test
path: libs/zk/test
- target: crypto3_zk_systems_plonk_plonk_constraint_test
path: libs/zk/test
- target: marshalling_fri_commitment_test
path: libs/marshalling/zk/test
- target: marshalling_lpc_commitment_test
path: libs/marshalling/zk/test
- target: marshalling_placeholder_common_data_test
path: libs/marshalling/zk/test
- target: marshalling_placeholder_proof_test
path: libs/marshalling/zk/test
- target: marshalling_sparse_vector_test
path: libs/marshalling/zk/test
- target: marshalling_plonk_constraint_system_test
path: libs/marshalling/zk/test
- target: marshalling_r1cs_gg_ppzksnark_primary_input_test
path: libs/marshalling/zk/test
- target: marshalling_r1cs_gg_ppzksnark_proof_test
path: libs/marshalling/zk/test
- target: marshalling_r1cs_gg_ppzksnark_verification_key_test
path: libs/marshalling/zk/test
- target: algebra_curves_test
path: libs/algebra/test
- target: algebra_fields_test
path: libs/algebra/test
- target: algebra_hash_to_curve_test
path: libs/algebra/test
- target: algebra_pairing_test
path: libs/algebra/test
- target: math_expression_test
path: libs/math/test
- target: math_lagrange_interpolation_test
path: libs/math/test
- target: math_polynomial_test
path: libs/math/test
- target: math_polynomial_dfs_test
path: libs/math/test
- target: math_polynomial_arithmetic_test
path: libs/math/test
- target: math_polynomial_view_test
path: libs/math/test
- target: hash_blake2b_test
path: libs/hash/test
- target: hash_crc_test
path: libs/hash/test
- target: hash_find_group_hash_test
path: libs/hash/test
- target: hash_h2c_test
path: libs/hash/test
- target: hash_h2f_test
path: libs/hash/test
- target: hash_keccak_test
path: libs/hash/test
- target: hash_md4_test
path: libs/hash/test
- target: hash_md5_test
path: libs/hash/test
- target: hash_pack_test
path: libs/hash/test
- target: hash_pedersen_test
path: libs/hash/test
- target: hash_ripemd_test
path: libs/hash/test
- target: hash_sha1_test
path: libs/hash/test
- target: hash_sha2_test
path: libs/hash/test
- target: hash_sha3_test
path: libs/hash/test
- target: hash_sha_test
path: libs/hash/test
- target: hash_static_digest_test
path: libs/hash/test
- target: hash_tiger_test
path: libs/hash/test
# https://github.com/NilFoundation/crypto3-hash/issues/100
# - target: hash_reinforced_concrete_test
# path: libs/hash/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 ${{ matrix.path }}
COLOR='\033[0;33m'
echo -e "${COLOR}${{ matrix.target }}"
./${{ matrix.target }}