Skip to content

Commit 5017e26

Browse files
committed
CI MacOS
1 parent 09915d1 commit 5017e26

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

.github/workflows/ci-cpp-linux.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,16 @@ jobs:
4949
if: ${{ matrix.compiler.name == 'Latest Clang' }}
5050
uses: MorganCaron/latest-clang-action@master
5151

52-
- name: Compile
52+
- name: Update xmake repository
53+
run: xmake repo --update
54+
55+
- name: Configure & Install dependencies
56+
run: |
57+
xmake f ${{ matrix.compiler.xmake-toolchain }} --runtimes="c++_shared" --enable_tests=y -v --yes
58+
59+
- name: Build
5360
run: |
54-
xmake f ${{ matrix.compiler.xmake-toolchain }} --runtimes="c++_shared" --enable_tests=y --yes
55-
xmake build -vD
61+
xmake build -v
5662
5763
- name: Run tests
5864
run: |

.github/workflows/ci-cpp-macos.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,25 @@ jobs:
1717
}
1818
steps:
1919
- uses: actions/checkout@v4
20+
21+
- uses: tecolicom/actions-use-homebrew-tools@v1
22+
with:
23+
tools: llvm ninja cmake
24+
2025
- uses: xmake-io/github-action-setup-xmake@v1
2126
with:
2227
xmake-version: branch@master
2328

24-
- name: Install LLVM
25-
if: ${{ matrix.compiler.name == 'Clang' }}
29+
- name: Update xmake repository
30+
run: xmake repo --update
31+
32+
- name: Configure & Install dependencies
2633
run: |
27-
brew install llvm
34+
xmake f --toolchain=llvm --sdk="$(brew --prefix)/opt/llvm/" --runtimes="c++_shared" --enable_tests=y -v --yes
2835
29-
- name: Compile
30-
env:
31-
CC: ${{ matrix.compiler.cc }}
32-
CXX: ${{ matrix.compiler.cxx }}
36+
- name: Build
3337
run: |
34-
xmake f --enable_tests=y --yes
35-
xmake build -vD
38+
xmake build -v
3639
3740
- name: Run tests
3841
run: |

0 commit comments

Comments
 (0)