Skip to content

Commit

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

- name: Build project using docker
run: |
docker buildx build . -f dist/linux.Dockerfile --progress=plain --output out
docker buildx build . -f dist/linux.Dockerfile --progress=plain --output out --build-arg "BUILD_TYPE=Release"
- name: Upload binary
uses: actions/upload-artifact@v3
Expand Down
3 changes: 2 additions & 1 deletion dist/linux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN apt install zlib1g-dev

COPY . .

RUN cmake -B build
ARG BUILD_TYPE=Debug
RUN cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build
RUN cmake --build build -j 4


Expand Down

0 comments on commit 9c730c2

Please sign in to comment.