mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Fancy Paralel CI
This commit is contained in:
committed by
iProgramInCpp
parent
185878d79f
commit
a2e830d114
49
.github/workflows/build.yml
vendored
49
.github/workflows/build.yml
vendored
@@ -5,7 +5,15 @@ on:
|
|||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
linux:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: OpenGL ES
|
||||||
|
flags: "-DUSE_GLES1_COMPATIBILITY_LAYER=ON"
|
||||||
|
- name: OpenGL
|
||||||
|
flags: "-DUSE_GLES1_COMPATIBILITY_LAYER=OFF"
|
||||||
|
name: Linux (${{ matrix.name }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@@ -16,12 +24,45 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --no-install-recommends -y build-essential cmake ninja-build libopenal-dev libsdl2-dev libpng-dev zlib1g-dev
|
sudo apt-get install --no-install-recommends -y build-essential cmake ninja-build libopenal-dev libsdl2-dev libpng-dev zlib1g-dev
|
||||||
- name: Build Desktop
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd platforms/sdl
|
cd platforms/sdl
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -GNinja ..
|
cmake -GNinja ${{ matrix.flags }} ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
- name: Build WASM
|
wasm:
|
||||||
|
name: WASM
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Build
|
||||||
run: ./build-wasm.sh
|
run: ./build-wasm.sh
|
||||||
|
android:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: SDL
|
||||||
|
directory: platforms/sdl/android
|
||||||
|
- name: Native
|
||||||
|
directory: platforms/android
|
||||||
|
name: Android (${{ matrix.name }})
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Setup JDK
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cd ${{ matrix.directory }}
|
||||||
|
./gradlew build
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ if(USE_SDL)
|
|||||||
target_link_libraries(reminecraftpe-core PUBLIC SDL)
|
target_link_libraries(reminecraftpe-core PUBLIC SDL)
|
||||||
|
|
||||||
# OpenGL
|
# OpenGL
|
||||||
if(NOT EMSCRIPTEN)
|
if(NOT EMSCRIPTEN AND NOT ANDROID)
|
||||||
option(USE_GLES1_COMPATIBILITY_LAYER "Whether To Enable The GLESv1_CM Compatibility Layer" TRUE)
|
option(USE_GLES1_COMPATIBILITY_LAYER "Whether To Enable The GLESv1_CM Compatibility Layer" TRUE)
|
||||||
else()
|
else()
|
||||||
set(USE_GLES1_COMPATIBILITY_LAYER TRUE CACHE BOOL "" FORCE)
|
set(USE_GLES1_COMPATIBILITY_LAYER TRUE CACHE BOOL "" FORCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user