Skip to content

fix(linux): be more permissive on invalid UTF-8 file content #181

fix(linux): be more permissive on invalid UTF-8 file content

fix(linux): be more permissive on invalid UTF-8 file content #181

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
jobs:
test:
name: Test
strategy:
matrix:
toolchain:
- stable
- 1.63.0 # MSRV
target:
- i686-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- i686-pc-windows-msvc
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
include:
- target: i686-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: i686-pc-windows-msvc
os: windows-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: x86_64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.1.0
- uses: actions-rs/toolchain@v1.0.7
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
- uses: Swatinem/rust-cache@v2.7.0
with:
key: ${{ matrix.target }}
- name: Build
uses: actions-rs/cargo@v1.0.3
with:
use-cross: true
command: build
args: --target ${{ matrix.target }} --all-features --all-targets
- name: Run tests
uses: actions-rs/cargo@v1.0.3
with:
use-cross: true
command: test
args: --target ${{ matrix.target }} --all-features --all-targets
- name: Run clippy
if: matrix.toolchain == 'stable'
uses: actions-rs/cargo@v1.0.3
with:
use-cross: true
command: clippy
args: --target ${{ matrix.target }} -- -D clippy::all
build_only:
name: Test [Build only]
strategy:
matrix:
toolchain:
- stable
- 1.63.0 # MSRV
target:
- x86_64-unknown-freebsd
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- aarch64-pc-windows-msvc
- aarch64-apple-darwin
include:
- target: x86_64-unknown-freebsd
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-pc-windows-msvc
os: windows-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.1.0
# FreeBSD requires latest cross
- run: cargo install cross --git https://github.com/cross-rs/cross
- uses: actions-rs/toolchain@v1.0.7
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
- uses: Swatinem/rust-cache@v2.7.0
with:
key: ${{ matrix.target }}
- name: Build
uses: actions-rs/cargo@v1.0.3
with:
use-cross: true
command: build
args: --target ${{ matrix.target }}
- name: Run clippy
if: matrix.toolchain == 'stable'
uses: actions-rs/cargo@v1.0.3
with:
use-cross: true
command: clippy
args: --target ${{ matrix.target }} -- -D clippy::all