File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 fail-fast : false
5353 matrix :
5454 dir : ${{ fromJSON(needs.collect-crates.outputs.dirs) }}
55- experimental_spec_shaking_v2 : [true, false]
5655 runs-on : ubuntu-latest
5756 steps :
5857 - uses : actions/checkout@v7
6665 - run : echo "${{ github.workspace }}/stellar-cli" >> $GITHUB_PATH
6766 - run : rustup update
6867 - run : rustup target add wasm32v1-none
69- - name : Enable experimental_spec_shaking_v2 feature
70- if : matrix.experimental_spec_shaking_v2
71- run : |
72- find . -name Cargo.toml | while read -r file; do
73- # Add feature to entries with existing features
74- sed -i '/soroban-sdk = {/s|features = \[|features = ["experimental_spec_shaking_v2", |' "$file"
75- # Add features field to entries without features
76- sed -i '/soroban-sdk = {/{/features/!s| }|, features = ["experimental_spec_shaking_v2"] }|}' "$file"
77- done
78- cargo update -p soroban-sdk
7968 - name : Diff
8069 run : git diff
8170 - name : Build ${{ matrix.dir }}
8877 echo "wasm=$wasm" | tee -a $GITHUB_OUTPUT
8978 - name : Set artifact name
9079 id : artifact-name
91- run : echo "name=wasm-$(echo ${{ matrix.dir }} | sed 's/\//-/g')${{ matrix.experimental_spec_shaking_v2 && '-spec-shaking-v2' || '' }} " | tee -a $GITHUB_OUTPUT
80+ run : echo "name=wasm-$(echo ${{ matrix.dir }} | sed 's/\//-/g')" | tee -a $GITHUB_OUTPUT
9281 - name : Upload WASM artifacts
9382 uses : actions/upload-artifact@v7.0.1
9483 with :
Original file line number Diff line number Diff line change 5959 fail-fast : false
6060 matrix :
6161 dir : ${{ fromJSON(needs.collect-examples.outputs.dirs) }}
62- experimental_spec_shaking_v2 : [true, false]
6362 runs-on : ubuntu-latest
6463 steps :
6564 - uses : actions/checkout@v7
7473 - run : echo "${{ github.workspace }}/stellar-cli" >> $GITHUB_PATH
7574 - run : rustup update
7675 - run : rustup target add wasm32v1-none
77- - name : Enable experimental_spec_shaking_v2 feature
78- if : matrix.experimental_spec_shaking_v2
79- run : |
80- find . -name Cargo.toml | while read -r file; do
81- # Add feature to entries with existing features
82- sed -i '/soroban-sdk = {/s|features = \[|features = ["experimental_spec_shaking_v2", |' "$file"
83- # Add features field to entries without features
84- sed -i '/soroban-sdk = {/{/features/!s| }|, features = ["experimental_spec_shaking_v2"] }|}' "$file"
85- (cd "$(dirname "$file")" && cargo update -p soroban-sdk 2>/dev/null || true)
86- done
8776 - name : Diff
8877 run : git diff
8978 - name : Build ${{ matrix.dir }}
9685 echo "wasm=$wasm" | tee -a $GITHUB_OUTPUT
9786 - name : Set artifact name
9887 id : artifact-name
99- run : echo "name=wasm-$(echo ${{ matrix.dir }} | sed 's/\//-/g')${{ matrix.experimental_spec_shaking_v2 && '-spec-shaking-v2' || '' }} " | tee -a $GITHUB_OUTPUT
88+ run : echo "name=wasm-$(echo ${{ matrix.dir }} | sed 's/\//-/g')" | tee -a $GITHUB_OUTPUT
10089 - name : Upload WASM artifacts
10190 uses : actions/upload-artifact@v7.0.1
10291 with :
You can’t perform that action at this time.
0 commit comments