mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
fix build att 6
This commit is contained in:
4
.github/actions/setup-cache/action.yml
vendored
4
.github/actions/setup-cache/action.yml
vendored
@@ -8,9 +8,6 @@ inputs:
|
|||||||
target:
|
target:
|
||||||
description: 'Target platform: win, linux'
|
description: 'Target platform: win, linux'
|
||||||
required: true
|
required: true
|
||||||
use-ccache:
|
|
||||||
description: 'Whether to use ccache/sccache'
|
|
||||||
required: true
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -20,7 +17,6 @@ runs:
|
|||||||
with:
|
with:
|
||||||
variant: sccache
|
variant: sccache
|
||||||
key: ${{ inputs.target }}-v1
|
key: ${{ inputs.target }}-v1
|
||||||
if: inputs.use-ccache
|
|
||||||
|
|
||||||
- name: Setup CPM Cache
|
- name: Setup CPM Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|||||||
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -2,12 +2,6 @@ name: Build Game
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
use-ccache:
|
|
||||||
description: 'Enable sccache'
|
|
||||||
required: false
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -17,6 +11,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
|
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
@@ -31,7 +26,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
host: win
|
host: win
|
||||||
target: win
|
target: win
|
||||||
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
@@ -53,11 +47,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: mcpe-windows
|
name: mcpe-windows
|
||||||
path: |
|
path: |
|
||||||
'MinecraftPE.exe'
|
'./MinecraftPE.exe'
|
||||||
'glfw3.dll'
|
'./glfw3.dll'
|
||||||
'libpng16.dll'
|
'./libpng16.dll'
|
||||||
'OpenAL32.dll'
|
'./OpenAL32.dll'
|
||||||
'z.dll'
|
'./z.dll'
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
name: Linux Build
|
name: Linux Build
|
||||||
@@ -71,7 +65,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
host: linux
|
host: linux
|
||||||
target: linux
|
target: linux
|
||||||
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
|
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
# Some projects don't allow in-source building, so create a separate build directory
|
||||||
@@ -101,7 +94,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: mcpe-linux
|
name: mcpe-linux
|
||||||
path: |
|
path: |
|
||||||
'MinecraftPE'
|
'./MinecraftPE'
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
@@ -124,13 +117,13 @@ jobs:
|
|||||||
- name: Zip Windows Artifacts
|
- name: Zip Windows Artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: data mcpe-windows/MinecraftPE.exe mcpe-windows/glfw3.dll mcpe-windows/libpng16.dll mcpe-windows/OpenAL32.dll mcpe-windows/z.dll
|
files: ${{github.workspace}}/data mcpe-windows/MinecraftPE.exe mcpe-windows/glfw3.dll mcpe-windows/libpng16.dll mcpe-windows/OpenAL32.dll mcpe-windows/z.dll
|
||||||
dest: minecraftpe-${{ steps.ref.outputs.hash }}-windows.zip
|
dest: minecraftpe-${{ steps.ref.outputs.hash }}-windows.zip
|
||||||
|
|
||||||
- name: Zip Linux Artifacts
|
- name: Zip Linux Artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: data mcpe-linux/MinecraftPE # ye, you should install libraries by urself :trollface:
|
files: ${{github.workspace}}/build/data mcpe-linux/MinecraftPE # ye, you should install libraries by urself :trollface:
|
||||||
dest: minecraftpe-${{ steps.ref.outputs.hash }}-linux.zip
|
dest: minecraftpe-${{ steps.ref.outputs.hash }}-linux.zip
|
||||||
|
|
||||||
- name: Zip Linux Server Artifacts
|
- name: Zip Linux Server Artifacts
|
||||||
|
|||||||
@@ -9,11 +9,6 @@ static Random _rand;
|
|||||||
|
|
||||||
namespace Mth
|
namespace Mth
|
||||||
{
|
{
|
||||||
constexpr float PI = 3.1415926535897932384626433832795028841971f; // exactly!
|
|
||||||
constexpr float TWO_PI = 2.0f * PI; // exactly!
|
|
||||||
constexpr float DEGRAD = PI / 180.0f;
|
|
||||||
constexpr float RADDEG = 180.0f / PI;
|
|
||||||
|
|
||||||
static float _sin[65536];
|
static float _sin[65536];
|
||||||
static const float _sinScale = 65536.0f / (2.0f * PI);
|
static const float _sinScale = 65536.0f / (2.0f * PI);
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,10 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
namespace Mth {
|
namespace Mth {
|
||||||
|
constexpr float PI = 3.1415926535897932384626433832795028841971f; // exactly!
|
||||||
extern const float PI;
|
constexpr float TWO_PI = 2.0f * PI; // exactly!
|
||||||
extern const float TWO_PI;
|
constexpr float DEGRAD = PI / 180.0f;
|
||||||
extern const float RADDEG;
|
const float RADDEG = 180.0f / PI;
|
||||||
extern const float DEGRAD;
|
|
||||||
|
|
||||||
void initMth();
|
void initMth();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user