-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (38 loc) · 1.01 KB
/
publish-crate-dry-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: PublishCrateDryRun
on:
workflow_dispatch:
inputs:
crate:
required: true
type: choice
description: Crate to publish
options:
- edge-nal
- edge-nal-std
- edge-nal-embassy
- 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