Skip to content

Commit

Permalink
Make web CI build in Release build type
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Dec 27, 2023
1 parent 0130ca8 commit b99150d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: 🛠️ Build using docker
run: |
docker buildx build . -f dist/web/Dockerfile --progress=plain --output out
docker buildx build . -f dist/web/Dockerfile --progress=plain --output out --build-arg "BUILD_TYPE=Release"
- name: 🔨 Change name of html page to index.html
run: |
Expand Down
2 changes: 2 additions & 0 deletions dist/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ENV CCACHE_DIR /home/user/ccache
RUN CC=emcc CXX=em++ vcpkg install --triplet=wasm32-emscripten zlib

COPY . .
ARG BUILD_TYPE=Debug
RUN --mount=type=cache,target=/home/user/cache <<EOF
# Build NBTEditor
set -xe
Expand All @@ -29,6 +30,7 @@ cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DQT_HOST_PATH=$(dirname "$QT_WASM")/gcc_64 \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-B build -G Ninja
cmake --build build -j 4
ccache -s
Expand Down

0 comments on commit b99150d

Please sign in to comment.