Skip to content

Update for API changes #130

Update for API changes

Update for API changes #130

Workflow file for this run

name: CI
on: push
jobs:
build-windows:
name: Windows Check
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x64, ARM64]
sys: [Windows, WindowsStore]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -A${{ matrix.arch }} -DCMAKE_SYSTEM_NAME="${{ matrix.sys }}" -DCMAKE_SYSTEM_VERSION="10.0" ..
- name: Build
run: |
cd build
cmake --build . --config release --target install
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: RGL_Samples_${{ matrix.sys }}_${{ matrix.arch }}
path: |
build/Release/*.exe
build/Release/*.cso
build/Release/*.obj
build/Release/*.png
build-linux:
name: Linux Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update
sudo apt install cmake make gcc-13 g++-13 ninja-build libwayland-dev libx11-dev libx11-xcb-dev libxtst-dev xcb libxcb-xkb-dev x11-xkb-utils libxkbcommon-x11-dev --no-install-recommends -y
- name: Configure
run: |
mkdir build
cd build
CC=/usr/bin/gcc-13 CXX=/usr/bin/g++-13 cmake -G "Ninja" ..
- name: Build
run: |
cd build
cmake --build . --config release --target install -- -j`nproc`
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: RGL_Samples_Linux
path: |
build/Release/*-*
build/Release/*.spv
build/Release/*.obj
build/Release/*.png
build-apple:
name: Apple Compile Check
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
tplatform: [iOS, tvOS, '']
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -G "Xcode" -DCMAKE_SYSTEM_NAME="${{ matrix.tplatform }}" -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ENABLED=NO ..
- name: Build
run: |
cd build
cmake --build . --config Release --target install -- -quiet
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: RGL_Samples_${{ matrix.tplatform }}
path: |
build/Release/*.app