PublishCrateDryRun #6
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: PublishDryRunCrate | |
on: | |
workflow_dispatch: | |
inputs: | |
crate: | |
required: true | |
type: choice | |
description: Crate to publish | |
options: | |
- embedded-nal-async-xtra | |
- edge-std-nal-async | |
- edge-captive | |
- edge-dhcp | |
- edge-http | |
- edge-mdns | |
- edge-mqtt | |
- edge-raw | |
- edge-ws | |
env: | |
rust_toolchain: stable | |
jobs: | |
publishdryrun: | |
name: Publish Dry Run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.rust_toolchain }} | |
- name: Setup | Std | |
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu | |
- name: Setup | Set default toolchain | |
run: rustup default ${{ env.rust_toolchain }} | |
- name: Build | Publish Dry Run | |
run: cd "${{ github.event.inputs.crate }}"; cargo publish --dry-run |