mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-30 07:31:04 +00:00
04ea0f76f8
Use nanosleep(2) instead of usleep(3) Makefile: fix compilation on FreeBSD Update macOS version for GitHub CI OpenGL2: Add OpenGL ES 2.0+ support OpenGL2: Add run-time support for unsigned short indexes OpenGL2: Use CPU vertex animation if too few vertex attributes Merge pull request #664 from zturtleman/opengles2 OpenGL2: Fix issues running under WebGL OpenGL2: Fallback to OpenGL ES if OpenGL fails Add minimal emscripten support Fix emscripten build directions Use BASEGAME for emscripten assets Fix using emscripten 3.1.27+ Allow building for emscripten with "emmake make" Add -ffast-math for emscripten to match other platforms Add .vscode and baseq3 to gitignore Rebuild every target if Makefile changes ioquake3.html replaces Emscripten-generated HTML shell Get rid of "Nothing to be done for _.zip" message Fix build when specifying PLATFORM=emscripten manually instead of using emmake Silence compiler warnings Support debug Emscripten build Speed up GitHub Actions with -j Add GitHub Actions workflow for web/Emscripten Add Emscripten to README Add DEPEND_MAKEFILE to disable rebuild on Makefile edit Add BUILD_RENDERER_OPENGL1 to disable opengl1 Clean up emscripten in Makefile Make emscripten --preload-file opt-in Allow web client to use unzipped QVMs Customize the web client HTML file Add support for overriding basegame to web client Add support for mods to web client Rename client-config.json based on CLIENTBIN
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
name: Build
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libsdl2-dev
|
|
- name: Compile
|
|
run: make release -j$(nproc) -C engine
|
|
env:
|
|
ARCHIVE: 1
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Linux
|
|
path: engine/build/*.zip
|
|
windows:
|
|
name: Windows
|
|
runs-on: windows-2019
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Compile
|
|
run: |
|
|
choco install zip
|
|
make release -j $env:NUMBER_OF_PROCESSORS -C engine
|
|
env:
|
|
ARCHIVE: 1
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Windows
|
|
path: engine/build/*.zip
|
|
macos:
|
|
name: macOS
|
|
runs-on: macos-12
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Compile
|
|
run: make release -j$(sysctl -n hw.logicalcpu) -C engine
|
|
env:
|
|
ARCHIVE: 1
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: macOS
|
|
path: engine/build/*.zip
|
|
web:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: emscripten-core/emsdk
|
|
path: emsdk
|
|
- name: Install Dependencies
|
|
run: |
|
|
cd emsdk
|
|
./emsdk install 3.1.58
|
|
./emsdk activate 3.1.58
|
|
- name: Compile
|
|
env:
|
|
ARCHIVE: 1
|
|
run: |
|
|
source emsdk/emsdk_env.sh
|
|
emmake make release -j$(nproc) -C engine
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Web
|
|
path: engine/build/*.zip
|