Skip to content

Commit

Permalink
improve and test
Browse files Browse the repository at this point in the history
  • Loading branch information
schiele committed May 17, 2023
1 parent ce43948 commit 73efb32
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ jobs:
- name: 2. Building dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd deps
mkdir -p build
cd build
cmake .. -DDEP_WX_GTK3=ON -DDEP_DOWNLOAD_DIR=$(pwd)/../download -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake .. -DDEP_WX_GTK3=ON -DDEP_DOWNLOAD_DIR=$(pwd)/../download
make
cd ../..
- name: 3. Building PrusaSlicer
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
mkdir build
cd build
cmake .. -DSLIC3R_STATIC=1 -DSLIC3R_GTK=3 -DSLIC3R_PCH=OFF -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake .. -DSLIC3R_STATIC=1 -DSLIC3R_GTK=3 -DSLIC3R_PCH=OFF -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local
make -j $(nproc)
macos:
runs-on: macos-latest
Expand Down Expand Up @@ -80,19 +82,21 @@ jobs:
- name: Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/
cd deps
mkdir build
cd build
cmake .. -DDEP_DOWNLOAD_DIR=$(pwd)/../download -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake .. -DDEP_DOWNLOAD_DIR=$(pwd)/../download
make
cd ../..
- name: Building PrusaSlicer
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix zstd)/lib/
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake .. -DCMAKE_PREFIX_PATH=$(pwd)/../deps/build/destdir/usr/local
make -j $(sysctl -n hw.logicalcpu)
windows:
runs-on: windows-latest
Expand Down

0 comments on commit 73efb32

Please sign in to comment.