Skip to content

generate bindings during build #105

generate bindings during build

generate bindings during build #105

Workflow file for this run

name: Health check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
CROS_LIBVA_H_PATH: ${{ github.workspace }}/work/out/include
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libdrm-dev
version: 1.0
- uses: actions/checkout@v3
- name: "checkout libva"
run: |
curl -O -L https://github.com/intel/libva/archive/refs/tags/2.22.0.tar.gz && \
tar xf 2.22.0.tar.gz --one-top-level=work --strip-components 1
- name: "build libva"
run: |
cd work; \
./autogen.sh --enable-drm --disable-x11 --disable-glx --disable-wayland --prefix=${{ github.workspace }}/work/out && \
make && \
make install
- name: Build
run: cargo build --all-features --verbose --workspace --tests --examples
- name: Clippy
run: cargo clippy --all-features --workspace --tests --examples
- name: Run tests
run: cargo test --verbose
- name: Format
run: cargo fmt --check --all