impl: start on OpenAPI prototype #70
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 SDK | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
rust-version: [ '1.81', '1.70' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo | |
key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
- name: Setup Rust ${{ matrix.rust-version }} | |
run: rustup toolchain install ${{ matrix.rust-version }} | |
- name: Display Cargo version | |
run: cargo version | |
- name: Display rustc version | |
run: rustc --version | |
- run: cargo test | |
lint: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
rust-version: [ '1.81' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo | |
key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
- name: Setup Rust ${{ matrix.rust-version }} | |
run: rustup toolchain install ${{ matrix.rust-version }} | |
- name: Display Cargo version | |
run: cargo version | |
- name: Display rustc version | |
run: rustc --version | |
- run: cargo fmt | |
- run: git diff --exit-code |