Skip to content

Commit

Permalink
ci: add release for stellar contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Sep 17, 2024
1 parent dd3679a commit 99eba89
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,37 @@ jobs:
with:
name: solidity-contracts
path: solidity-contracts.zip

build_stellar:
name: Build stellar Contracts
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
submodules: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79.0
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install wasm32
run: |
rustup target add wasm32-unknown-unknown
cargo install --locked soroban-cli
- name: Compile WASM
run: |
bash ./scripts/optimize-stellar.sh
cd artifacts/stellar && zip -r ../../stellar-contracts.zip . -j
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: stellar-contracts
path: stellar-contracts.zip

release:
name: Release and Publish
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,6 +138,12 @@ jobs:
name: solidity-contracts
path: solidity-contracts

- name: Download Stellar Artifacts
uses: actions/download-artifact@v4
with:
name: stellar-contracts
path: stellar-contracts

- name: Unzip Javascore Artifacts
run: unzip javascore-contracts/javascore-contracts.zip -d javascore-contracts && rm -rf javascore-contracts/javascore-contracts.zip

Expand All @@ -115,6 +152,9 @@ jobs:

- name: Unzip Cosmwasm Artifacts
run: unzip solidity-contracts/solidity-contracts.zip -d solidity-contracts && rm -rf solidity-contracts/solidity-contracts.zip

- name: Unzip Stellar Artifacts
run: unzip stellar-contracts/stellar-contracts.zip -d stellar-contracts && rm -rf stellar-contracts/stellar-contracts.zip

- name: Changelog
uses: scottbrenner/generate-changelog-action@master
Expand Down Expand Up @@ -143,4 +183,5 @@ jobs:
./javascore-contracts/*.jar
./cosmwasm-contracts/*.wasm
./solidity-contracts/*
./stellar-contracts/*
check256sums.txt

0 comments on commit 99eba89

Please sign in to comment.