diff --git a/.github/workflows/npm_publish.yaml b/.github/workflows/npm_publish.yaml index e7ae274..a2d388d 100644 --- a/.github/workflows/npm_publish.yaml +++ b/.github/workflows/npm_publish.yaml @@ -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 @@ -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}" @@ -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