Skip to content

Add IpHeadersSlice and IpSlice::header() #484

Add IpHeadersSlice and IpSlice::header()

Add IpHeadersSlice and IpSlice::header() #484

Workflow file for this run

name: main
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: cargo build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build:
- linux-stable
- linux-32bit-stable
- linux-beta
- linux-nightly
- macos-stable
- win-msvc-stable
- win-gnu-stable
include:
- build: linux-stable
os: ubuntu-latest
rust: stable
- build: linux-32bit-stable
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
- build: linux-beta
os: ubuntu-latest
rust: beta
- build: linux-nightly
os: ubuntu-latest
rust: nightly
- build: macos-stable
os: macos-latest
rust: stable
- build: win-msvc-stable
os: windows-latest
rust: stable
- build: win-gnu-stable
os: windows-latest
rust: stable-x86_64-gnu
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: cargo build
if: matrix.target == ''
run: cargo build
- name: install cross
if: matrix.target != ''
run: cargo install cross --locked
- name: cross build
if: matrix.target != ''
run: cross build --target ${{ matrix.target }}
- name: cargo test
if: matrix.target == ''
run: cargo test
- name: cross test
if: matrix.target != ''
run: cross test --target ${{ matrix.target }}
- name: cargo build --no-default-features
if: matrix.target == ''
run: cargo build --no-default-features
- name: cross build --no-default-features
if: matrix.target != ''
run: cross build --target ${{ matrix.target }} --no-default-features
- name: cargo test --no-default-features
if: matrix.target == ''
run: cargo test --no-default-features
- name: cross test --no-default-features
if: matrix.target != ''
run: cross test --target ${{ matrix.target }} --no-default-features
no_std_build:
name: no_std build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./etherparse/ensure_no_std
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-none
- run: cargo build --target x86_64-unknown-none
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: read rust-version from Cargo.toml
id: msrv
run: |
MSRV=$(sed -n 's/^rust-version *= *"\(.*\)"/\1/p' etherparse/Cargo.toml)
echo "version=$MSRV" >> "$GITHUB_OUTPUT"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.msrv.outputs.version }}
- run: cargo check --package etherparse --all-features