Skip to content

Commit 6f2d6a2

Browse files
committed
fix(ci): pin linux compiler env for xlings
1 parent 68b5635 commit 6f2d6a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
- name: Install dependencies
2424
run: xlings install -g
2525

26+
- name: Configure Linux toolchain env
27+
run: |
28+
echo "$HOME/.xlings/subos/default/bin" >> "$GITHUB_PATH"
29+
echo "CC=$HOME/.xlings/subos/default/bin/gcc" >> "$GITHUB_ENV"
30+
echo "CXX=$HOME/.xlings/subos/default/bin/g++" >> "$GITHUB_ENV"
31+
echo "AR=$HOME/.xlings/subos/default/bin/ar" >> "$GITHUB_ENV"
32+
echo "RANLIB=$HOME/.xlings/subos/default/bin/ranlib" >> "$GITHUB_ENV"
33+
2634
- name: Build
2735
run: xmake build -a -y -vvD
2836

0 commit comments

Comments
 (0)