Skip to content

Fix buffer overflow when the count of display modes exceeds MaxModePe… #335

Fix buffer overflow when the count of display modes exceeds MaxModePe…

Fix buffer overflow when the count of display modes exceeds MaxModePe… #335

name: Check XGL
on:
push:
branches:
- '*'
- '!master'
pull_request:
jobs:
build-and-test:
name: "Features: ${{ matrix.feature-set }}"
runs-on: ${{ matrix.host-os }}
strategy:
fail-fast: false
matrix:
host-os: ["ubuntu-20.04"]
image-template: ["amdvlk_%s%s:nightly"]
config: [Release]
feature-set: ["+gcc", "+gcc+assertions",
"+clang"]
steps:
- name: Checkout XGL
run: |
git clone https://github.com/${GITHUB_REPOSITORY}.git .
git fetch origin +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok
git checkout ${GITHUB_SHA}
- name: Generate Docker base image tag string
run: |
CONFIG_LOWER=$(echo "${{ matrix.config }}" | tr "[:upper:]" "[:lower:]")
FEATURES_LOWER=$(echo "${{ matrix.feature-set }}" | tr "+" "_")
TAG=$(printf "${{ matrix.image-template }}" "$CONFIG_LOWER" "$FEATURES_LOWER")
echo "IMAGE_TAG=$TAG" | tee -a $GITHUB_ENV
- name: Fetch the latest prebuilt AMDVLK
run: docker pull "amdvlkadmin/$IMAGE_TAG"
- name: Build and Test with Docker
run: docker build . --file docker/check_xgl.Dockerfile
--build-arg AMDVLK_IMAGE="amdvlkadmin/$IMAGE_TAG"
--build-arg XGL_REPO_NAME="${GITHUB_REPOSITORY}"
--build-arg XGL_REPO_REF="${GITHUB_REF}"
--build-arg XGL_REPO_SHA="${GITHUB_SHA}"
--tag xgl/xgl-ci