Skip to content

Commit d9a918b

Browse files
committed
refactor: simplify contract build process by using native optimization flag and updating home domain
1 parent 6e8f59f commit d9a918b

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

.github/workflows/contract-release.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,10 @@ jobs:
4444
- name: Build all contracts
4545
run: |
4646
stellar contract build \
47-
--meta home_domain=boundless.xyzi \
47+
--optimize \
48+
--meta home_domain=boundlessfi.xyz \
4849
--meta source_repo=github:${{ github.repository }}
4950
50-
# Optimize all generated wasms
51-
for wasm in ${{ env.WASM_DIR }}/*.wasm; do
52-
# Skip already optimized ones if any
53-
if [[ "$wasm" == *".optimized.wasm" ]]; then continue; fi
54-
55-
echo "Optimizing $wasm..."
56-
stellar contract optimize --wasm "$wasm"
57-
58-
# Replace original with optimized
59-
optimized="${wasm%.wasm}.optimized.wasm"
60-
if [ -f "$optimized" ]; then
61-
mv "$optimized" "$wasm"
62-
fi
63-
done
64-
6551
- name: Upload to Artifacts
6652
uses: actions/upload-artifact@v4
6753
with:

0 commit comments

Comments
 (0)