Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Dec 28, 2024
1 parent 21423f5 commit 02fa189
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/npm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,9 @@ jobs:

env:
WORKING_DIR: ${{ github.workspace }}/wasm_bindings

strategy:
fail-fast: false
matrix:
layout:
[
"dex",
"dynamic",
"recursive",
"recursive_with_poseidon",
"small",
"starknet",
"starknet_with_keccak",
]
hash:
[
"keccak_160_lsb",
"keccak_248_lsb",
"blake2s_160_lsb",
"blake2s_248_lsb",
]
stone:
[
"stone5",
"stone6",
]
LAYOUTS: "dex dynamic recursive recursive_with_poseidon small starknet starknet_with_keccak"
HASHERS: "keccak_160_lsb keccak_248_lsb blake2s_160_lsb blake2s_248_lsb"
STONES: "stone5 stone6"

steps:
- name: Checkout repository
Expand Down Expand Up @@ -80,13 +57,9 @@ jobs:

- name: Build WASM packages
run: |
LAYOUTS=(${{ matrix.layout }})
HASHERS=(${{ matrix.hash }})
STONES=(${{ matrix.stone }})
for layout in "${LAYOUTS[@]}"; do
for hasher in "${HASHERS[@]}"; do
for stone in "${STONES[@]}"; do
for layout in $LAYOUTS; do
for hasher in $HASHERS; do
for stone in $STONES; do
output_dir="src/pkg/swiftness_${layout}_${hasher}_${stone}"
features="${layout},${hasher},${stone}"
Expand All @@ -95,8 +68,8 @@ jobs:
wasm-pack build --out-dir "$output_dir" --target web --features "$features" --no-default-features
# Clean up unnecessary files
rm "$output_dir/.gitignore"
rm "$output_dir/README.md"
rm -f "$output_dir/.gitignore"
rm -f "$output_dir/README.md"
done
done
done
Expand Down

0 comments on commit 02fa189

Please sign in to comment.