Update ci.yml #397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
# allows us to run workflows manually | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Prepare Vulkan SDK | |
uses: humbletim/install-vulkan-sdk@v1.1.1 | |
with: | |
version: 1.3.296.0 | |
cache: true | |
- name: Apt dependencies | |
shell: bash | |
run: | | |
sudo apt -y update | |
sudo apt install -y libx11-xcb-dev \ | |
xorg-dev \ | |
libxinerama-dev \ | |
libglu1-mesa-dev \ | |
freeglut3-dev \ | |
mesa-common-dev | |
- name: Build Shared | |
shell: bash | |
run: | | |
mkdir bld-shared | |
cd bld-shared | |
cmake --version | |
cmake .. -DGPRT_BUILD_SHARED=ON | |
make VERBOSE=1 -j4 | |
# - name: Build Static | |
# shell: bash | |
# run: | | |
# mkdir bld-static | |
# cd bld-static | |
# cmake --version | |
# cmake .. | |
# make VERBOSE=1 -j4 | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Prepare Vulkan SDK | |
uses: humbletim/install-vulkan-sdk@v1.1.1 | |
with: | |
version: 1.3.296.0 | |
cache: true | |
- name: Build | |
shell: bash | |
run: | | |
mkdir bld | |
cd bld | |
cmake --version | |
cmake .. -DVulkan_BIN_DIR=$HOME/bin | |
cmake --build . |