Skip to content

Use VclError in WS, CStr support #550

Use VclError in WS, CStr support

Use VclError in WS, CStr support #550

Workflow file for this run

name: Build
on:
push:
branches: [ "main", "feature-*" ]
pull_request:
branches: [ "main", "feature-*" ]
release:
types: [ published ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- setup: varnish74
- setup: varnish75
- setup: varnish76
env:
RUST_BACKTRACE: 1
RUSTDOCFLAGS: -D warnings
RUSTFLAGS: -D warnings
steps:
- uses: taiki-e/install-action@v2
with: { tool: just }
- uses: actions/checkout@v4
- name: Ensure this crate has not yet been published (on release)
if: github.event_name == 'release'
run: just check-if-published
- uses: Swatinem/rust-cache@v2
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
- name: install varnish-dev
run: |
curl -s https://packagecloud.io/install/repositories/varnishcache/${{ matrix.setup }}/script.deb.sh | sudo bash
sudo apt-get install -y varnish-dev
- run: just -v ci-test
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
msrv:
name: Test MSRV
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
RUSTDOCFLAGS: -D warnings
RUSTFLAGS: -D warnings
steps:
- uses: taiki-e/install-action@v2
with: { tool: just }
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
- name: Read crate metadata
id: metadata
run: echo "rust-version=$(sed -ne 's/rust-version *= *\"\(.*\)\"/\1/p' Cargo.toml)" >> $GITHUB_OUTPUT
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ steps.metadata.outputs.rust-version }}
components: rustfmt
- name: install varnish-dev
run: |
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish76/script.deb.sh | sudo bash
sudo apt-get install -y varnish-dev
- run: just -v ci-test-msrv
# Ensure that the docs can be built at docs.rs without varnish dependencies
test-docs-rs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: rust-info
run: rustc --version && cargo --version
- uses: Swatinem/rust-cache@v2
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
- name: Ensure docs can be built at docs.rs without varnish dependencies
run: cargo doc --no-deps
env:
# Pretend to be on docs.rs
# See https://docs.rs/about/builds#detecting-docsrs
DOCS_RS: 1