Bugfix: unsafe precondition(s) violated: slice::from_raw_parts requir… #529
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Windows - x86_64 | |
on: | |
push: | |
branches: | |
- master | |
- feature-* | |
- issue-* | |
pull_request: | |
jobs: | |
build_and_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- 1.65.0 # MSRV | |
- stable | |
- nightly | |
linkage: | |
- x64-windows | |
- x64-windows-static | |
name: Test ${{ matrix.version }} ${{ matrix.linkage }} - x86_64-pc-windows-msvc | |
runs-on: windows-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Cache vcpkg installed | |
uses: actions/cache@v4 | |
with: | |
path: $VCPKG_ROOT/installed | |
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.linkage }} | |
env: | |
VCPKG_ROOT: 'C:\vcpkg' | |
- name: Cache vcpkg downloads | |
uses: actions/cache@v4 | |
with: | |
path: $VCPKG_ROOT/downloads | |
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.linkage }} | |
env: | |
VCPKG_ROOT: 'C:\vcpkg' | |
- name: Install dependencies Windows | |
run: vcpkg integrate install; vcpkg install libarchive:${{ matrix.linkage }} | |
env: | |
VCPKG_ROOT: 'C:\vcpkg' | |
- name: Install ${{ matrix.version }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.version }}-x86_64-pc-windows-msvc | |
profile: minimal | |
override: true | |
- name: Generate Cargo.lock | |
uses: actions-rs/cargo@v1 | |
with: | |
command: generate-lockfile | |
- name: Cache cargo registry | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/registry | |
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache cargo index | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo/git | |
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }} | |
- name: Cache cargo build | |
uses: actions/cache@v4 | |
with: | |
path: target | |
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-build-trimmed-${{ hashFiles('**/Cargo.lock') }} | |
- name: Check build | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTFLAGS: ${{ matrix.linkage == 'x64-windows-static' && '-C target-feature=+crt-static' || '' }} | |
VCPKGRS_DYNAMIC: ${{ matrix.linkage == 'x64-windows' && 1 || 0 }} | |
VCPKG_DEFAULT_TRIPLET: ${{ matrix.linkage }} | |
with: | |
command: check | |
args: --release --all --bins --examples --tests | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
timeout-minutes: 10 | |
env: | |
RUSTFLAGS: ${{ matrix.linkage == 'x64-windows-static' && '-C target-feature=+crt-static' || '' }} | |
VCPKGRS_DYNAMIC: ${{ matrix.linkage == 'x64-windows' && 1 || 0 }} | |
VCPKG_DEFAULT_TRIPLET: ${{ matrix.linkage }} | |
with: | |
command: test | |
args: --release --all --all-features --no-fail-fast -- --nocapture |