Skip to content

chore(ci): migrate Linux CI to runs-on self-hosted runners #4515

chore(ci): migrate Linux CI to runs-on self-hosted runners

chore(ci): migrate Linux CI to runs-on self-hosted runners #4515

Workflow file for this run

name: Windows tests
on:
pull_request:
types: [opened, reopened, synchronize, labeled]
merge_group:
push:
branches:
- main
- 'support/**'
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CI: 1
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
RUSTUP_MAX_RETRIES: 10
jobs:
rust:
name: Run rust tests in windows
timeout-minutes: 20
runs-on: windows-latest
#defaults:
# run:
# working-directory: ./
#permissions:
#contents: read
#actions: read
#pull-requests: read
env:
#CC: deny_c
RUST_CHANNEL: '1.91.1'
CARGO_DENY_VERSION: '0.19.0'
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Rust toolchain
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src clippy
rustup default ${{ env.RUST_CHANNEL }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
with:
# workspaces: "rust -> target"
key: windows-${{ env.RUST_CHANNEL }}
- name: Check
run: |
cargo test --lib --profile ci