Update SDK Proto (#1734) #1147
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: | |
workflow_call: | |
pull_request: | |
paths: | |
- "cli/**" | |
- "proto/**" | |
- ".github/workflows/*rust*" | |
- "devops/**" | |
push: | |
branches: | |
- main | |
paths: | |
- "cli/**" | |
- "proto/**" | |
- ".github/workflows/*rust*" | |
- "devops/**" | |
workflow_dispatch: | |
inputs: | |
packageVersion: | |
description: "Package Version" | |
required: true | |
default: "1.0.0" | |
jobs: | |
rust: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
defaults: | |
run: | |
working-directory: ./cli | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- name: cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --manifest-path cli/Cargo.toml | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path cli/Cargo.toml | |
- name: Test CLI directly | |
run: | | |
./test/Run-Demo.ps1 -Environment Staging -CommandPath ./target/debug/trinsic | |
shell: pwsh |