File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build for Windows
2+ on : [ push, pull_request ]
3+ jobs :
4+ build_windows :
5+ name : CI for Windows
6+ runs-on : windows-latest
7+ steps :
8+ - name : Checkout for Windows
9+ uses : actions/checkout@v2
10+ - name : Install msys2
11+ uses : msys2/setup-msys2@v2
12+ with :
13+ update : true
14+ install : >-
15+ mingw-w64-x86_64-clang mingw-w64-x86_64-cmake mingw-w64-x86_64-lld mingw-w64-x86_64-ninja
16+ - name : Build for Windows
17+ shell : msys2 {0}
18+ run : ./build.sh
19+ - name : Upload artifact
20+ uses : actions/upload-artifact@v4
21+ with :
22+ name : ddb-xdispatch-win-latest
23+ path : out
24+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ OUT_DIR=" ` pwd` /out/xdispatch_ddb"
4+
5+ mkdir build out
6+ cd build
7+ LDFLAGS+=" -fuse-ld=lld" \
8+ cmake -DCMAKE_INSTALL_PREFIX=" $OUT_DIR " \
9+ -DCMAKE_C_COMPILER=" clang" \
10+ -DCMAKE_CXX_COMPILER=" clang++" \
11+ -DCMAKE_BUILD_TYPE=Release \
12+ ..
13+ ninja
14+ cmake --install .
15+
16+ mv " $OUT_DIR /bin/" * " $OUT_DIR /lib/"
17+ rmdir " $OUT_DIR /bin"
You can’t perform that action at this time.
0 commit comments