Skip to content

Merge branch 'master' into develop #2

Merge branch 'master' into develop

Merge branch 'master' into develop #2

Workflow file for this run

on:
pull_request:
branches:
- develop
- 'develop-v**'
push:
branches:
- develop
- 'develop-v**'
name: CI
env:
TOOLCHAIN: nightly-2022-11-15
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ${{ env.TOOLCHAIN }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
default: true
components: rustfmt
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: fmt
args: --all -- --check
build:
runs-on: cumulus-repo-worker-2004
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install ${{ env.TOOLCHAIN }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
default: true
components: rustfmt
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: build
args: --release
test:
runs-on: cumulus-repo-test-job-workers
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install ${{ env.TOOLCHAIN }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
default: true
components: rustfmt
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
command: test
args: -j1