Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add GHA workflow to build and release artifacts #107

Merged
merged 5 commits into from
Dec 19, 2023

Conversation

k-yang
Copy link
Member

@k-yang k-yang commented Dec 19, 2023

Runs the cosmwasm/workspace-optimizer Docker image to build the CosmWasm contracts and uploads them to a new GitHub Release.

I ran this workflow on a separate branch and it worked. It created this prerelease.

With the approval of this PR, every merge to the main branch will create a new release whose assets contain the latest CosmWasm contracts compiled and optimized.

Summary by CodeRabbit

  • New Features

    • Implemented a workflow for automatically releasing optimized WebAssembly files upon changes to the main branch.
  • Chores

    • Updated the version of a tool used in the build process to enhance the compilation of smart contracts.

Copy link
Contributor

coderabbitai bot commented Dec 19, 2023

Walkthrough

The project has implemented a new GitHub Actions workflow for building and releasing WebAssembly artifacts automatically upon pushes to the main branch. Additionally, there's been a version bump in a script related to the Docker image for compiling smart contracts, indicating an upgrade to the toolchain.

Changes

File Path Change Summary
.github/workflows/build-artifacts.yml Introduced a workflow for auto-building wasm files and creating pre-releases.
scripts/.../wasm-out.sh Updated image_version from "0.14.0" to "0.15.0" for the workspace-optimizer.

🐇
To main we push with glee,
For artifacts built by CI, you see.
With a version bump, we hop and cheer,
Smart contracts compile without fear. 🚀🎉

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • You can reply to a review comment made by CodeRabbit.
  • You can tag CodeRabbit on specific lines of code or files in the PR by tagging @coderabbitai in a comment.
  • You can tag @coderabbitai in a PR comment and ask one-off questions about the PR and the codebase. Use quoted replies to pass the context for follow-up questions.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

@k-yang k-yang self-assigned this Dec 19, 2023
@k-yang k-yang added the ci GitHub actions or other continuous integration changes label Dec 19, 2023
@Unique-Divine Unique-Divine merged commit 0da684b into main Dec 19, 2023
3 checks passed
@Unique-Divine Unique-Divine deleted the ci/gha/build-artifacts branch December 19, 2023 22:20
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 0358fad and 464b560.
Files ignored due to filter (1)
  • Cargo.lock
Files selected for processing (2)
  • .github/workflows/build-artifacts.yml (1 hunks)
  • scripts/wasm-out.sh (1 hunks)
Additional comments: 2
.github/workflows/build-artifacts.yml (1)
  • 1-40: The workflow is well-structured and follows best practices for setting up a CI/CD pipeline using GitHub Actions. It correctly checks out the code, sets up caching for Rust dependencies, builds the wasm files, and publishes a release. Ensure that the GITHUB_TOKEN has the correct permissions to create releases and that the artifacts/* path correctly points to the compiled wasm files.
scripts/wasm-out.sh (1)
  • 14-20: The update to the Docker image version in the wasm function is correct and reflects the change mentioned in the PR objectives and AI-generated summary. However, ensure that this version update does not introduce any breaking changes or incompatibilities with the current codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci GitHub actions or other continuous integration changes
Projects
Status: ✅ Completed
2 participants