Skip to content

Build and test PR13 #83

Build and test PR13

Build and test PR13 #83

Workflow file for this run

name: Build and test
run-name: Build and test PR${{ github.event.number }}
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
build-ubuntu-x64-clang:
name: Ubuntu x64 Clang
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
export CXX=clang++
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build layer_gpu_timeline
run: |
export CXX=clang++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build and run unit tests
run: |
export CXX=clang++
mkdir build_unittest
cd build_unittest
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=./ ..
make install -j4
./bin/unittest_comms
build-ubuntu-x64-gcc:
name: Ubuntu x64 GCC
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
export CXX=g++
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Build layer_gpu_timeline
run: |
export CXX=g++
mkdir layer_gpu_timeline/build_rel
cd layer_gpu_timeline/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
build-android:
name: Android
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build layer_example
run: |
cd layer_example
bash ./android_build.sh Release
build-ubuntu-x64-clang-new-common:
name: Ubuntu x64 generate common
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Generate layer_test
run: |
python3 ./generator/generate_vulkan_common.py
mkdir layer_example/build_rel
cd layer_example/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
- name: Check unexpected diffs
run: |
git diff --exit-code
build-ubuntu-x64-clang-new-project:
name: Ubuntu x64 generate new layer
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Generate layer_test
run: |
python3 ./generator/generate_vulkan_common.py
python3 ./generator/generate_vulkan_layer.py --project-name Test --layer-name VkLayerTest --output layer_test
mkdir layer_test/build_rel
cd layer_test/build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4