refactor: Fix github build pipeline

This commit is contained in:
0xalivecow 2024-10-26 18:51:07 +02:00
parent 7564869ea8
commit 8e9388c353
No known key found for this signature in database
5 changed files with 60 additions and 9 deletions

View file

@ -1,7 +1,7 @@
use std::collections::HashMap;
use crate::utils::parse::{Responses, Testcase, Testcases};
use tasks01::{block2poly::block2poly, poly2block::poly2block, sea128::sea128};
use tasks01::{block2poly::block2poly, gfmul::gfmul, poly2block::poly2block, sea128::sea128};
use anyhow::{anyhow, Result};
use serde_json::{json, Value};
@ -34,6 +34,11 @@ pub fn task_deploy(testcase: &Testcase) -> Result<Value> {
let json = json!({"output" : result});
Ok(json)
}
"gfmul" => {
let result = gfmul(args)?;
let json = json!({"product" : result});
Ok(json)
}
_ => Err(anyhow!(
"Fatal. No compatible action found. Json data was {:?}. Arguments were; {:?}",
testcase,