Skip to content

Fixed warning about unknown #[cfg] #269

Fixed warning about unknown #[cfg]

Fixed warning about unknown #[cfg] #269

Workflow file for this run

name: Build & Test for Windows
on:
push:
paths-ignore:
- "*.md"
pull_request:
jobs:
build_rs:
name: Build & Tests on Windows
runs-on: windows-latest
permissions:
contents: read
security-events: write
actions: read
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
# When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
# This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
- run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Build rorm with tokio
run: cargo build -p rorm -F tokio
- name: Build rorm with async-std
run: cargo build -p rorm -F async-std