Bump shlex from 1.2.0 to 1.3.0 #69
Workflow file for this run
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: Rust | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add wasm toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Install Protobuf on Ubuntu | |
run: sudo apt install -y protobuf-compiler | |
- name: Build AdMeta | |
run: cargo build --release | |
- name: Run unit test | |
run: cargo test | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ success() && (github.event_name == 'push') && (github.ref == 'refs/heads/main') }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add wasm toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
override: true | |
- name: Install Protobuf on Ubuntu | |
run: sudo apt install -y protobuf-compiler | |
- name: Docs | |
# Add --all-features option when benchmark works | |
run: | | |
cargo doc --no-deps | |
echo "<meta http-equiv=\"refresh\" content=\"0; URL=pallet_ad/index.html\"/>" > target/doc/index.html | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: target/doc |