Merge pull request #207 from trinitys7/trinity/fix-build #31
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
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
# on: [pull_request] | |
on: | |
push: | |
name: Release artifacts | |
jobs: | |
release: | |
name: Build Release Artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.70.0 | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Build schemas | |
run: ./scripts/build_schemas.sh | |
# This must go after the other cargo commands, as it writes lots of stuff to | |
# target/ with root permissions (from docker) | |
- name: Build Wasm images | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: cosmwasm/optimizer:0.15.0 | |
options: -v ${{ github.workspace }}:/code | |
run: optimize.sh . | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
body_path: RELEASE_NOTES.md | |
tag_name: ${{ github.ref }} | |
files: | | |
artifacts/* | |
schemas/* |