Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/RavEngine/RGL into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Oct 14, 2023
2 parents 6ae747d + c2ddfc5 commit 8b8a020
Showing 1 changed file with 118 additions and 0 deletions.
118 changes: 118 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: CI
on: push

jobs:
build-windows:
name: Windows Compile 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" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config release --target RGL rglc
build-linux:
name: Linux Compile Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install cmake make clang ninja-build vulkan-sdk 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/clang CXX=/usr/bin/clang++ cmake -G "Ninja" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config release --target RGL rglc --parallel
build-mac:
name: macOS Compile Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -G "Xcode" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config Release --target RGL rglc -- -quiet
build-apple-mobile:
name: Apple Mobile 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 }}" -DRGL_RUNTIME_COMPILATION=ON -DCMAKE_XCODE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_CODE_SIGNING_ENABLED=NO ..
- name: Build
run: |
cd build
cmake --build . --config Release --target RGL -- -quiet
build-web:
name: Web Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update
sudo apt install ninja-build
- name: Get Emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git --depth=1
cd emsdk
./emsdk install tot
./emsdk activate tot
- name: Build for web
run: |
source emsdk/emsdk_env.sh
mkdir build
cd build
emcmake cmake -G Ninja -DRGL_RUNTIME_COMPILATION=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target RGL --parallel

0 comments on commit 8b8a020

Please sign in to comment.