Skip to content

Commit 90c1b63

Browse files
authored
New version 15.0.0.0
1 parent e81718f commit 90c1b63

File tree

746 files changed

+28871
-35986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

746 files changed

+28871
-35986
lines changed

.ci/ci_build.sh

Lines changed: 50 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,56 +16,83 @@ else
1616
CI_NAME="$(uname -s | tr '[:upper:]' '[:lower:]')"
1717
fi
1818

19-
# set environment variables if not exists
20-
[ -z "${BUILD_TYPE}" ] && BUILD_TYPE="Debug"
19+
# set environment variables if not exists (debug)
20+
[ -z "${BUILD_TYPE}" ] && BUILD_TYPE="Release"
2121

22-
# Determine cmake build type; tag builds are Release, else Debug (-dev appends to platform)
23-
if [[ $BUILD_SOURCEBRANCH == *"refs/tags"* || $GITHUB_REF == *"refs/tags"* ]]; then
24-
BUILD_TYPE=Release
25-
else
26-
PLATFORM=${PLATFORM}-dev
27-
fi
22+
echo "Platform: ${PLATFORM}, build type: ${BUILD_TYPE}, CI_NAME: $CI_NAME, docker image: ${DOCKER_IMAGE}, docker type: ${DOCKER_TAG}"
2823

2924
# Build the package on osx or linux
3025
if [[ "$CI_NAME" == 'osx' || "$CI_NAME" == 'darwin' ]]; then
31-
# compile prepare
26+
echo "Start: osx or darwin"
27+
3228
mkdir build || exit 1
3329
cd build
3430
cmake -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ../ || exit 2
3531
make -j $(sysctl -n hw.ncpu) package || exit 3
3632
exit 0;
37-
exit 1 || { echo "---> Hyperion compilation failed! Abort"; exit 5; }
33+
exit 1 || { echo "---> Hyperhdr compilation failed! Abort"; exit 5; }
3834
elif [[ $CI_NAME == *"mingw64_nt"* || "$CI_NAME" == 'windows_nt' ]]; then
39-
# compile prepare
35+
echo "Start: windows"
36+
4037
echo "Number of Cores $NUMBER_OF_PROCESSORS"
4138
mkdir build || exit 1
4239
cd build
43-
cmake -G "Visual Studio 16 2019" -A x64 -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ../ || exit 2
40+
cmake -G "Visual Studio 16 2019" -A x64 -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_GITHUB_ACTION=1 ../ || exit 2
4441
cmake --build . --target package --config Release -- -nologo -v:m -maxcpucount || exit 3
4542
exit 0;
46-
exit 1 || { echo "---> Hyperion compilation failed! Abort"; exit 5; }
43+
exit 1 || { echo "---> Hyperhdr compilation failed! Abort"; exit 5; }
4744
elif [[ "$CI_NAME" == 'linux' ]]; then
48-
echo "Compile Hyperion with DOCKER_IMAGE = ${DOCKER_IMAGE}, DOCKER_TAG = ${DOCKER_TAG} and friendly name DOCKER_NAME = ${DOCKER_NAME}"
45+
echo "Compile Hyperhdr with DOCKER_IMAGE = ${DOCKER_IMAGE}, DOCKER_TAG = ${DOCKER_TAG} and friendly name DOCKER_NAME = ${DOCKER_NAME}"
46+
4947
# set GitHub Container Registry url
50-
REGISTRY_URL="ghcr.io/hyperion-project/${DOCKER_IMAGE}"
48+
REGISTRY_URL="ghcr.io/awawa-dev/${DOCKER_IMAGE}"
49+
5150
# take ownership of deploy dir
5251
mkdir ${CI_BUILD_DIR}/deploy
5352

54-
# run docker
55-
docker run --rm \
53+
if [[ "$USE_CCACHE" == '1' ]]; then
54+
echo "Using cache"
55+
56+
mkdir -p .ccache
57+
58+
cachecommand="-DCMAKE_C_COMPILER_LAUNCHER=ccache"
59+
cache_env="export CCACHE_DIR=/.ccache && export CCACHE_COMPRESS=true && export CCACHE_COMPRESSLEVEL=6 && export CCACHE_MAXSIZE=400M"
60+
echo "CCache parameters: ${cachecommand}, env: ${cache_env}"
61+
62+
ls -a .ccache
63+
# run docker
64+
docker run --rm \
65+
-v "${CI_BUILD_DIR}/.ccache:/.ccache" \
5666
-v "${CI_BUILD_DIR}/deploy:/deploy" \
5767
-v "${CI_BUILD_DIR}:/source:ro" \
5868
$REGISTRY_URL:$DOCKER_TAG \
59-
/bin/bash -c "sudo apt-get update && sudo apt-get install libglvnd-dev libturbojpeg0-dev -y &&
60-
mkdir hyperion && cp -r source/. /hyperion &&
61-
cd /hyperion && mkdir build && cd build &&
69+
/bin/bash -c "${cache_env} && export -p && ccache -p && cd / && mkdir hyperhdr && cp -r source/. /hyperhdr &&
70+
cd /hyperhdr && mkdir build && cd build &&
71+
cmake ${cachecommand} -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ../ || exit 2 &&
72+
make -j $(nproc) package || exit 3 &&
73+
cp /hyperhdr/build/bin/h* /deploy/ 2>/dev/null || : &&
74+
cp /hyperhdr/build/Hyper* /deploy/ 2>/dev/null || : &&
75+
exit 0;
76+
exit 1 " || { echo "---> HyperHDR compilation failed! Abort"; exit 5; }
77+
ls -a .ccache
78+
else
79+
echo "Not using cache"
80+
81+
# run docker
82+
docker run --rm \
83+
-v "${CI_BUILD_DIR}/deploy:/deploy" \
84+
-v "${CI_BUILD_DIR}:/source:ro" \
85+
$REGISTRY_URL:$DOCKER_TAG \
86+
/bin/bash -c "cd / && mkdir hyperhdr && cp -r source/. /hyperhdr &&
87+
cd /hyperhdr && mkdir build && cd build &&
6288
cmake -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ../ || exit 2 &&
6389
make -j $(nproc) package || exit 3 &&
64-
cp /hyperion/build/bin/h* /deploy/ 2>/dev/null || : &&
65-
cp /hyperion/build/Hyper* /deploy/ 2>/dev/null || : &&
90+
cp /hyperhdr/build/bin/h* /deploy/ 2>/dev/null || : &&
91+
cp /hyperhdr/build/Hyper* /deploy/ 2>/dev/null || : &&
6692
exit 0;
6793
exit 1 " || { echo "---> HyperHDR compilation failed! Abort"; exit 5; }
68-
94+
fi
95+
6996
# overwrite file owner to current user
7097
sudo chown -fR $(stat -c "%U:%G" ${CI_BUILD_DIR}/deploy) ${CI_BUILD_DIR}/deploy
7198
fi

.ci/ci_install.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

.codedocs

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improving Hyperion
3+
about: Create a report to help us improving HyperHDR
44
labels: Waiting For Review
55
---
66

77
<!-- Please don't delete this template or we'll close your issue -->
8-
<!-- Before creating an issue please make sure you are using the latest version of Hyperion. -->
8+
<!-- Before creating an issue please make sure you are using the latest version of HyperHDR.
9+
FULL LOGS ARE MANDATORY! You can use service like pastebin to upload them and provide link here.
10+
-->
911

1012
<!-- Please confirm you will submit an issue. -->
1113
<!-- Issues which contain questions or support requests will be closed. -->
12-
<!-- (Update "[ ]" to "[x]" to check a box) -->
1314

14-
- [x] I confirm that this is an issue rather than a question.
15-
16-
<!-- Please ask questions here -->
17-
<!-- https://hyperion-project.org -->
18-
19-
## Bug report
2015

16+
## Bug report, debug log and your config file (FULL LOGS ARE MANDATORY)
17+
<!-- In the web interface of the Hyperion config go to System > Logs and paste its content here or provide link to pastebin upload.
18+
Remember, missing or partial/cut logs deserves partial answer or closing report without any attention.
19+
-->
2120

2221
#### Steps to reproduce
2322

24-
2523
#### What is expected?
2624

27-
2825
#### What is actually happening?
2926

30-
3127
#### System
32-
<!-- In the web interface of the Hyperion config go to System > About Hyperion and Paste the content of "System info (Github Issue)" here -->
28+
<!-- In the web interface of the Hyperion config go to System > About and Paste the content of "System info" here -->

0 commit comments

Comments
 (0)