Skip to content

Commit 1288288

Browse files
authored
Merge pull request #3 from jae1911/jae/ci/feat/builds
CI/CD for Windows, Linux (and Linux ARM)
2 parents ae2691d + d832a9e commit 1288288

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/ydms-build.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

inc/crn_decomp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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

0 commit comments

Comments
 (0)