Trying to get odra environment on Github #3
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
name: Build Counter | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: wasm32-unknown-unknown | |
components: rustfmt, clippy, llvm-tools-preview | |
- name: Install Toolchain | |
run: rustup toolchain install stable | |
- name: Install Odra | |
run: cargo +stable install cargo-odra --git https://github.com/odradev/cargo-odra --branch release/0.1.2 --locked | |
- name: Add rustup target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Counter | |
run: cd counter && cargo odra build --verbose |