Skip to content

update craft example #2348

update craft example

update craft example #2348

Workflow file for this run

name: ci-windows
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
push:
branches:
- main
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
jobs:
test:
strategy:
fail-fast: false
matrix:
version:
- stable
# - nightly
target:
- x86_64-pc-windows-msvc
# - x86_64-pc-windows-gnu
# - i686-pc-windows-msvc
name: Check ${{ matrix.version }} - ${{ matrix.target }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- name: Install openssl
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- name: check build
run: cargo check --all --bins --examples --tests
- name: check release build
run: cargo check --all --bins --examples --tests --release
- name: Cargo test
timeout-minutes: 40
run: cargo test --all --all-features --no-fail-fast -- --nocapture