Isotropic Remeshing Part 2 (Works without MM) #4058
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CTEST_OUTPUT_ON_FAILURE: ON | |
CTEST_PARALLEL_LEVEL: 2 | |
jobs: | |
#################### | |
# Linux | |
#################### | |
Linux: | |
name: ${{ matrix.name }} (${{ matrix.config }}) | |
runs-on: [self-hosted,Linux] | |
#runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
config: [Debug, Release] | |
include: | |
- os: ubuntu-latest | |
name: Linux | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 10 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Dependencies | |
run: | | |
echo 'CACHE_PATH=~/.ccache' >> "$GITHUB_ENV" | |
- name: Cache Build | |
id: cache-build | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CACHE_PATH }} | |
key: ${{ runner.os }}-${{ matrix.config }}-cache-${{ github.sha }} | |
restore-keys: ${{ runner.os }}-${{ matrix.config }}-cache | |
- name: Prepare ccache | |
run: | | |
ccache --max-size=10.0G | |
ccache -V && ccache --show-stats && ccache --zero-stats | |
- name: Configure | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
- name: Build | |
run: cd build; make -j8; ccache --show-stats | |
- name: Tests | |
run: cd build; ctest --verbose --output-on-failure -j8 | |
#################### | |
# MacOS | |
#################### | |
MacOS: | |
name: ${{ matrix.name }}-${{ matrix.arch }} (${{ matrix.config }}) | |
#runs-on: ${{ matrix.os }} | |
runs-on: [self-hosted, MacOS] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
arch: [arm64] # arm64 no arm as GMP is binary | |
config: [Debug, Release] | |
include: | |
- os: macos-latest | |
name: macOS | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 10 | |
- name: Dependencies | |
run: | | |
echo 'CACHE_PATH=~/Library/Caches/ccache' >> "$GITHUB_ENV" | |
#- name: Cache Build | |
# id: cache-build | |
# uses: actions/cache@v4 | |
# with: | |
# path: ${{ env.CACHE_PATH }} | |
# key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.arch }}-cache-${{ github.sha }} | |
# restore-keys: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.arch }}-cache | |
- name: Prepare ccache | |
run: | | |
ccache --max-size=10.0G | |
ccache -V && ccache --show-stats && ccache --zero-stats | |
- name: Configure | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
- name: Build | |
run: cd build; make -j8; ccache --show-stats | |
- name: Tests | |
#if: matrix.arch == 'x86_64' # no ARM vm on actions yet | |
run: cd build; ctest --verbose --output-on-failure -j8 | |
#################### | |
# Windows | |
#################### | |
Windows: | |
name: Windows (${{ matrix.config }}) | |
runs-on: [self-hosted, Windows] | |
#runs-on: windows-2022 | |
env: | |
CC: cl.exe | |
CXX: cl.exe | |
SCCACHE_IDLE_TIMEOUT: "12000" | |
strategy: | |
fail-fast: false | |
matrix: | |
config: [Debug, Release] | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 10 | |
- name: Configure and build | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64 | |
cmake --version | |
cmake -G Ninja ^ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} ^ | |
-DCPM_SOURCE_CACHE=C:\Temp\CPM ^ | |
-B build ^ | |
-S . | |
cd build | |
ninja -j8 | |
- name: Tests | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64 | |
cd build | |
ctest --verbose --output-on-failure -j8 |