Skip to content

Commit

Permalink
chore: add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leapalazzolo committed Oct 26, 2023
1 parent 531f866 commit 779b475
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Contract

on:
push:
branches: ['**']

defaults:
run:
working-directory: src/asset_reward

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install cargo-contract
run: |
cargo install cargo-contract
env:
CARGO_HOME: ${{ env.HOME }}/.cargo
PATH: ${{ env.HOME }}/.cargo/bin:${{ env.PATH }}

- name: Build Contract
run: |
cargo contract build

0 comments on commit 779b475

Please sign in to comment.