Skip to content

Update xgl from commit 18a03b2b #306

Update xgl from commit 18a03b2b

Update xgl from commit 18a03b2b #306

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 tools/cache_creator/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