-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 7 commits.
# This is the 1st commit message: rebase # This is the commit message #2: rebase # This is the commit message #3: add origin # This is the commit message #4: Delete build-artifacts.yml # This is the commit message #5: rebase # This is the commit message #6: fixes #535 (#553) * fixes #535 * don't skip integration tests * remove ref: main * get github ref from action * try base_ref * try GITHUB_SHA * GITHUB_REF_NAME * back to GITHUB_SHA * checkout pull request commit * renamee to release-pipeline * back to Co-authored-by: Seun Lanlege <seunlanlege@gmail.com> # This is the commit message #7: fetch depth
- Loading branch information
1 parent
3a55b92
commit 06dd757
Showing
14 changed files
with
367 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Release Pipeline | ||
on: | ||
push: | ||
branches: | ||
- releases | ||
jobs: | ||
build-and-publish: | ||
runs-on: | ||
- self-hosted | ||
- linux | ||
- x64 | ||
- sre | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- name: Clean up | ||
continue-on-error: true | ||
run: | | ||
sudo chown -R $USER:$USER $GITHUB_WORKSPACE | ||
docker system prune --force --all --volumes | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Install srtool | ||
run: | | ||
cargo install --git https://github.com/chevdor/srtool-cli | ||
cargo install --locked --git https://github.com/chevdor/subwasm --tag v0.16.1 | ||
- name: Runtime wasm builds | ||
id: runtime_release | ||
env: | ||
|
||
run: | | ||
.maintain/runtime_release.sh | ||
- uses: release-drafter/release-drafter@v5 | ||
id: release_drafter | ||
|
||
- name: Set Permission | ||
continue-on-error: true | ||
run: | | ||
sudo su runner | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Add runtime metadata to release body | ||
run: | | ||
cd scripts/github && npm install | ||
printf "\n%s" "${{ steps.release_drafter.outputs.body }}" >> $GITHUB_WORKSPACE/release.md | ||
npm run update-release-body -- --id=${{ steps.release_drafter.outputs.id }} --repo=composableFi/composable --body="$GITHUB_WORKSPACE/release.md" | ||
cd $GITHUB_WORKSPACE | ||
- name: Upload Dali wasm | ||
id: upload-dali-wasm | ||
if: env.dali_wasm == 1 | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.release_drafter.outputs.upload_url }} | ||
asset_path: ./runtime/dali/target/srtool/release/wbuild/dali-runtime/dali_runtime.compact.wasm | ||
asset_name: dali_runtime.compact.wasm | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Picasso wasm | ||
id: upload-picasso-wasm | ||
if: env.picasso_wasm == 1 | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.release_drafter.outputs.upload_url }} | ||
asset_path: ./runtime/picasso/target/srtool/release/wbuild/picasso-runtime/picasso_runtime.compact.wasm | ||
asset_name: picasso_runtime.compact.wasm | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Composable wasm | ||
id: upload-composable-wasm | ||
if: env.composable_wasm == 1 | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.release_drafter.outputs.upload_url }} | ||
asset_path: ./runtime/composable/target/srtool/release/wbuild/composable-runtime/composable_runtime.compact.wasm | ||
asset_name: composable_runtime.compact.wasm | ||
asset_content_type: application/octet-stream | ||
|
||
- name: 🔨 Build Composable Binary | ||
env: | ||
|
||
run: | | ||
.maintain/client_release.sh | ||
- name: Upload Composable Node Binaries | ||
id: upload-composable-binary | ||
if: env.client_release == 1 | ||
uses: actions/upload-release-asset@v1 | ||
|
||
with: | ||
upload_url: ${{ steps.release_drafter.outputs.upload_url }} | ||
asset_path: ./target/release/composable | ||
asset_name: composable | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.