Skip to content

Update rust.yml

Update rust.yml #7

Workflow file for this run

name: Build
permissions: {}
on:
pull_request:
push:
branches:
- main
env:
# Disable incremental compilation for faster from-scratch builds
CARGO_INCREMENTAL: 0
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: rustup update
- run: cargo build --release
- run: rmdir /s target/release/build
- run: rmdir /s target/release/deps
- run: rmdir /s target/release/examples
- run: rmdir /s target/release/incremental
- uses: actions/upload-artifact@v4
with:
path: target/release/