Skip to content

Feat/token scale validation 1346 #1355

Feat/token scale validation 1346

Feat/token scale validation 1346 #1355

Workflow file for this run

name: Rust CI (Windows)
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build-and-test:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.88.0
profile: minimal
default: true
- name: Verify MSVC linker
shell: pwsh
run: |
if (-not (Get-Command link.exe -ErrorAction SilentlyContinue)) {
Write-Error "MSVC linker (link.exe) not found."
exit 1
} else {
Write-Host "MSVC linker found."
}
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build contract
run: cargo build --workspace --release
- name: Compile tests
run: cargo test --workspace --quiet --no-run
- name: Build Rust documentation
run: cargo doc --workspace --no-deps