File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,26 +11,37 @@ jobs:
1111 matrix :
1212 compiler :
1313 - {
14- name : " cl" ,
15- cc : " cl" ,
16- cxx : " cl"
14+ name : " Clang" ,
15+ cc : " clang" ,
16+ cxx : " clang++" ,
17+ xmake-toolchain : " --toolchain=llvm --sdk=\" $env:LLVM_PATH\" "
1718 }
1819 steps :
1920 - uses : actions/checkout@v4
2021 - uses : xmake-io/github-action-setup-xmake@v1
2122 with :
2223 xmake-version : branch@master
23- - uses : ilammy/msvc-dev-cmd@v1
24+
25+ - name : Install LLVM
26+ uses : KyleMayes/install-llvm-action@v1.9.0
2427 with :
25- toolset : " 14.39"
26- - name : Compile
28+ version : " 21.1.3"
29+
30+ - name : Configure & Install dependencies
31+ shell : pwsh
2732 env :
2833 CC : ${{ matrix.compiler.cc }}
2934 CXX : ${{ matrix.compiler.cxx }}
3035 run : |
31- xmake f --enable_tests=y --yes
32- xmake build -vD
36+ xmake f ${{ matrix.compiler.xmake-toolchain }} --runtimes="c++_shared" --enable_tests=y -v --yes
37+
38+ - name : Build
39+ shell : pwsh
40+ run : |
41+ xmake build -v
3342
3443 - name : Run tests
44+ shell : pwsh
3545 run : |
3646 xmake run
47+
You can’t perform that action at this time.
0 commit comments