Skip to content

All tests pass on macOS now #664

All tests pass on macOS now

All tests pass on macOS now #664

Workflow file for this run

# Copyright (c) 2021-2023 Valve Corporation
# Copyright (c) 2021-2023 LunarG, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Author: Lenny Komow <lenny@lunarg.com>
# Author: Nathaniel Cesario <nathaniel@lunarg.com>
# Author: Mark Lobodzinski <mark@lunarg.com>
name: Linux (formatting, build, test)
on:
push:
pull_request:
branches:
- main
jobs:
code-format:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Execute Source Code Format Checking Script
run: python3 scripts/check_code_format.py --fetch-main --target-refspec=FETCH_HEAD
linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
cc: [gcc, clang]
cxx: [g++, clang++]
config: [debug, release]
exclude:
- cc: gcc
cxx: clang++
- cc: clang
cxx: g++
- cc: clang
config: debug
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.17.2
- name: Install build dependencies
run: |
python3 -m pip install jsonschema pyparsing
sudo apt-get -qq update
sudo apt-get install -y libxkbcommon-dev libwayland-dev libmirclient-dev libxrandr-dev \
libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-ewmh-dev \
libxcb-randr0-dev
- name: Build Vulkan-ExtensionLayer
run: python3 scripts/github_ci_build_desktop.py --config ${{ matrix.config }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
- name: Verify generated code is up to date
run: python3 scripts/github_ci_check_codegen.py
if: matrix.cc == 'gcc' && matrix.config == 'release'