Skip to content

Commit d79b3d2

Browse files
committed
fix ci tests for macos
1 parent 2c24b37 commit d79b3d2

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,12 @@ jobs:
268268
269269
270270
MacOS:
271-
name: macos-${{ matrix.build-config }}
272-
runs-on: macos-latest
273-
env:
274-
LDFLAGS: "-L/opt/homebrew/opt/llvm/lib"
275-
CPPFLAGS: "-I/opt/homebrew/opt/llvm/include"
276-
CC: /opt/homebrew/opt/llvm/bin/clang
277-
CXX: /opt/homebrew/opt/llvm/bin/clang++
271+
name: macos-${{ matrix.os-version }}-${{ matrix.build-config }}
272+
runs-on: macos-${{ matrix.os-version }}
278273
strategy:
279274
fail-fast: false
280275
matrix:
276+
os-version: [14, 15]
281277
build-config: [debug, release]
282278

283279
steps:
@@ -289,8 +285,6 @@ jobs:
289285
run: |
290286
cmake --version
291287
git --version
292-
${CC} --version
293-
${CXX} --version
294288
295289
- uses: actions/checkout@v4
296290
with:
@@ -300,6 +294,7 @@ jobs:
300294
run: |
301295
mkdir build
302296
cd build
297+
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
303298
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
304299
305300
- name: Build
@@ -311,3 +306,11 @@ jobs:
311306
run: |
312307
cd build/result/${{ matrix.build-config }}
313308
./cage-test-core
309+
310+
- name: List dependencies
311+
run: |
312+
cd build/result/${{ matrix.build-config }}
313+
echo "cage-core:"
314+
otool -L libcage-core.dylib
315+
echo "cage-engine:"
316+
otool -L libcage-engine.dylib

0 commit comments

Comments
 (0)