Skip to content

Commit 0ba5eed

Browse files
authored
Fix ci (#1)
1 parent 9500ff4 commit 0ba5eed

File tree

6 files changed

+38
-428
lines changed

6 files changed

+38
-428
lines changed

.github/FUNDING.yml

-12
This file was deleted.

.github/workflows/continuous.yml

+37-72
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest]
24-
config: [DebugNoSymbols, Release]
24+
config: [Release]
2525
threading: [TBB]
2626
include:
2727
- os: ubuntu-latest
@@ -30,12 +30,14 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@v4.1.6
3232
with:
33+
submodules: true
3334
fetch-depth: 10
3435

3536
- name: Dependencies
3637
run: |
3738
sudo apt-get update
3839
sudo apt-get -o Acquire::Retries=3 install ccache
40+
sudo apt-get install libmpfr-dev libmpfr-doc libboost-all-dev
3941
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV"
4042
4143
- name: Cache Build
@@ -52,7 +54,21 @@ jobs:
5254
# ccache --max-size=1.0G
5355
ccache -V && ccache --show-stats && ccache --zero-stats
5456
55-
- name: Configure
57+
- name: Configure-inflator
58+
run: |
59+
cd inflator
60+
mkdir -p build
61+
cd build
62+
cmake .. \
63+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
64+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
65+
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
66+
-DLIBIGL_WITH_OPENGL=OFF
67+
68+
- name: Build-inflator
69+
run: cd inflator/build; make -j2; ccache --show-stats
70+
71+
- name: Configure-polyfem
5672
run: |
5773
mkdir -p build
5874
cd build
@@ -62,7 +78,7 @@ jobs:
6278
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
6379
-DPOLYFEM_THREADING=${{ matrix.threading }}
6480
65-
- name: Build
81+
- name: Build-polyfem
6682
run: cd build; make -j2; ccache --show-stats
6783

6884
- name: Tests
@@ -83,18 +99,19 @@ jobs:
8399
fail-fast: false
84100
matrix:
85101
os: [macos-latest, macos-14]
86-
config: [DebugNoSymbols, Release]
102+
config: [Release]
87103
threading: [TBB]
88104

89105
steps:
90106
- name: Checkout repository
91107
uses: actions/checkout@v4.1.6
92108
with:
109+
submodules: true
93110
fetch-depth: 10
94111

95112
- name: Dependencies
96113
run: |
97-
brew install ccache
114+
brew install ccache boost
98115
echo 'CACHE_PATH=~/Library/Caches/ccache' >> "$GITHUB_ENV"
99116
100117
- name: Cache Build
@@ -110,84 +127,32 @@ jobs:
110127
ccache --max-size=1.0G
111128
ccache -V && ccache --show-stats && ccache --zero-stats
112129
113-
- name: Configure
130+
- name: Configure-inflator
114131
run: |
132+
cd inflator
115133
mkdir -p build
116134
cd build
117135
cmake .. \
118136
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
119137
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
120138
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
121-
-DPOLYFEM_THREADING=${{ matrix.threading }}
122-
123-
- name: Build
124-
run: cd build; make -j2; ccache --show-stats
125-
126-
- name: Tests
127-
run: cd build; ctest --verbose --output-on-failure
128-
129-
####################
130-
# Windows
131-
####################
132-
133-
Windows:
134-
runs-on: windows-2022
135-
env:
136-
SCCACHE_IDLE_TIMEOUT: "12000"
137-
strategy:
138-
fail-fast: false
139-
matrix:
140-
config: [DebugNoSymbols]
141-
threading: [CPP]
142-
steps:
143-
- name: Checkout repository
144-
uses: actions/checkout@v4.1.6
145-
with:
146-
fetch-depth: 10
139+
-DLIBIGL_WITH_OPENGL=OFF
147140
148-
- name: Install Ninja
149-
uses: seanmiddleditch/gha-setup-ninja@master
141+
- name: Build-inflator
142+
run: cd inflator/build; make -j2; ccache --show-stats
150143

151-
- name: Dependencies
152-
run: |
153-
choco install ccache
154-
"CACHE_PATH=${env:LOCALAPPDATA}\ccache" | Out-File -FilePath $env:GITHUB_ENV -Append
155-
156-
- name: Cache build
157-
id: cache-build
158-
uses: actions/cache@v4.0.2
159-
with:
160-
path: ${{ env.CACHE_PATH }}
161-
key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.threading }}-cache-${{ github.sha }}
162-
restore-keys: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.threading }}-cache
163-
164-
- name: Prepare ccache
144+
- name: Configure-polyfem
165145
run: |
166-
ccache --max-size=1.0G
167-
ccache -V && ccache --show-stats && ccache --zero-stats
146+
mkdir -p build
147+
cd build
148+
cmake .. \
149+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
150+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
151+
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="" \
152+
-DPOLYFEM_THREADING=${{ matrix.threading }}
168153
169-
- name: Configure
170-
shell: cmd
171-
run: |
172-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
173-
cmake -G Ninja ^
174-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
175-
-DCMAKE_CONFIGURATION_TYPES="Release;Debug;RelWithDebInfo;MinSizeRel;DebugNoSymbols" ^
176-
-DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
177-
-DCMAKE_CXX_FLAGS_DEBUGNOSYMBOLS="/Od" -DCMAKE_EXE_LINKER_FLAGS_DEBUGNOSYMBOLS="" ^
178-
-DPOLYFEM_WITH_CLIPPER=OFF ^
179-
-DPOLYFEM_THREADING=${{ matrix.threading }} ^
180-
-DPOLYSOLVE_WITH_CHOLMOD=OFF ^
181-
-DPOLYSOLVE_WITH_AMGCL=OFF ^
182-
-DPOLYSOLVE_WITH_MKL=ON ^
183-
-B build ^
184-
-S .
185-
186-
- name: Build
187-
shell: cmd
188-
run: |
189-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
190-
cmake --build build -j2 && ccache --show-stats
154+
- name: Build-polyfem
155+
run: cd build; make -j2; ccache --show-stats
191156

192157
- name: Tests
193158
run: cd build; ctest --verbose --output-on-failure

.github/workflows/coverage.yml

-84
This file was deleted.

.github/workflows/docs.yml

-63
This file was deleted.

0 commit comments

Comments
 (0)