Update Rust crate serde_json to v1.0.117 #106
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: Generate | |
on: | |
push: | |
jobs: | |
generate: | |
name: Generate Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Clone Google FHIR Protobufs | |
uses: actions/checkout@v3 | |
with: | |
repository: 'google/fhir' | |
path: 'fhir' | |
- name: Move Protobufs to src | |
run: mv fhir/proto/google src/proto/google | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
- name: Install Cargo Bump | |
run: cargo install cargo-bump | |
- name: Rust Build | |
run: cargo build | |
env: | |
CARGO_INCREMENTAL: 1 | |
- name: Rust Test | |
run: cargo test | |
env: | |
CARGO_INCREMENTAL: 1 | |
- name: Cargo Bump Version & Format | |
run: cargo bump patch && cargo fmt | |
- name: Update Repository | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Balamurali Pandranki | |
author_email: [email protected] | |
default_author: github_actor | |
message: 'Generated code.' | |
push: true | |
- name: Publish Crate | |
if: github.ref == 'refs/heads/main' | |
run: cargo publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
CARGO_INCREMENTAL: 1 |