File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " YDMS Build"
2+
3+ on : [push]
4+
5+ jobs :
6+ build-linux :
7+ strategy :
8+ matrix :
9+ osver : [ubuntu-latest, ubuntu-24.04-arm]
10+
11+ runs-on : ${{ matrix.osver }}
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set dist name
17+ run : |
18+ if ${{ matrix.osver == 'ubuntu-24.04-arm' }}; then
19+ echo "distname=crunch-linux-arm" >> "$GITHUB_ENV"
20+ else
21+ echo "distname=crunch-linux" >> "$GITHUB_ENV"
22+ fi
23+
24+ - name : Create build dirs
25+ run : |
26+ mkdir build
27+ cd build
28+ echo "builddir=$(pwd)" >> "$GITHUB_ENV"
29+
30+ - name : Build crunch Linux
31+ working-directory : ${{ env.builddir }}
32+ run : |
33+ cmake -DCMAKE_BUILD_TYPE=Release ..
34+ make -j4
35+
36+ - name : Upload artifacts
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : ${{ env.distname }}
40+ path : ${{ env.builddir }}/**/*.so
41+
42+ build-windows :
43+ runs-on : windows-latest
44+ steps :
45+ - uses : actions/checkout@v4
46+
47+ - name : Setup msbuild
48+ uses : microsoft/setup-msbuild@v2
49+
50+ - name : Build solution
51+ run : |
52+ msbuild -target:build -property:Configuration=Release_DLL -property:Platform=x64 -m crn.2010.sln
53+
54+ - name : Upload artifacts
55+ uses : actions/upload-artifact@v4
56+ with :
57+ name : crunch-windows
58+ path : lib/**/*.dll
Original file line number Diff line number Diff line change 2121#include < memory.h>
2222#else
2323#include < malloc.h>
24+ #include < cstdint>
2425#endif
2526#include < stdarg.h>
2627#include < new> // needed for placement new, _msize, _expand
You can’t perform that action at this time.
0 commit comments