Skip to content

[ECO-229] Add Rust SDK example script #17

[ECO-229] Add Rust SDK example script

[ECO-229] Add Rust SDK example script #17

Workflow file for this run

---
name: Build Rust SDK
on:
pull_request:
branches:
- main
paths:
- src/rust/sdk/**
- src/rust/types/**
- src/rust/Cargo.toml
- src/rust/Cargo.lock
- .github/workflows/build-rust-sdk.yml
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- name: Setup mold
uses: rui314/setup-mold@v1
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Build Rust SDK
run: cargo build
working-directory: src/rust/sdk
env:
RUSTFLAGS: "-C link-arg=-fuse-ld=mold"
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache