Skip to content

Commit 83c7f50

Browse files
committed
fix: configure linux with musl-gcc, macos with llvm SDK
1 parent a809f9d commit 83c7f50

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,22 @@ jobs:
8181
- name: Configure (linux)
8282
if: runner.os == 'Linux'
8383
working-directory: tests
84-
run: xmake f -P . -y -vv
84+
run: |
85+
MUSL_VER=$(python3 -c "import json; print(json.load(open('../.xlings.json'))['workspace']['musl-gcc']['linux'])")
86+
MUSL_SDK="$HOME/.xlings/data/xpkgs/xim-x-musl-gcc/${MUSL_VER}"
87+
xmake f -P . -y -vv \
88+
--sdk="${MUSL_SDK}" \
89+
--cross=x86_64-linux-musl- \
90+
--cc="${MUSL_SDK}/bin/x86_64-linux-musl-gcc" \
91+
--cxx="${MUSL_SDK}/bin/x86_64-linux-musl-g++"
8592
8693
- name: Configure (macos)
8794
if: runner.os == 'macOS'
8895
working-directory: tests
89-
run: xmake f -P . -y -vv --toolchain=llvm
96+
run: |
97+
LLVM_VER=$(python3 -c "import json; print(json.load(open('../.xlings.json'))['workspace']['llvm']['macosx'])")
98+
LLVM_SDK="$HOME/.xlings/data/xpkgs/xim-x-llvm/${LLVM_VER}"
99+
xmake f -P . -y -vv --toolchain=llvm --sdk="${LLVM_SDK}"
90100
91101
- name: Configure (windows)
92102
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)