Skip to content

Add EGL_EXT_device_query to bindings generation #215

Add EGL_EXT_device_query to bindings generation

Add EGL_EXT_device_query to bindings generation #215

Workflow file for this run

name: Rust
on:
push:
branches-ignore:
- gh-readonly-queue/**
- main
pull_request:
merge_group:
branches: [main]
schedule:
# Runs at 04:30, every Saturday
- cron: "30 4 * * 6"
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "macos-latest"]
cargo-options: ["", '--features "dynamic_lib"']
include:
- os: "windows-latest"
cargo-options: '--features "egl"'
- os: "windows-latest"
cargo-options: '--features "build_dlls"'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Set env
if: contains(matrix.os, 'ubuntu')
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
- name: Run tests
run: cargo test --verbose ${{ matrix.cargo-options }}
linux-cross-compile:
name: linux (${{ matrix.target }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
container: ghcr.io/servo/cross-${{ matrix.target }}:main
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: apt update && apt install -y libx11-dev
- run: cargo test --target ${{ matrix.target }}
build_result:
name: Result
runs-on: ubuntu-latest
needs:
- "build"
- "linux-cross-compile"
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"