Repository navigation
62 lines (59 loc) · 1.81 KB
/
Copy pathbuild.yml
File metadata and controls
62 lines (59 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build-lib:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build: [debug, release]
arch: [win32, win64]
include:
- {build: debug, cmaketype: Debug}
- {build: release, cmaketype: RelWithDebInfo}
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Build dll
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.cmaketype }}
cmake --build build
- name: Upload Assets
uses: actions/upload-artifact@v4
with:
name: lib-${{ matrix.arch }}-${{ matrix.build }}
path: |
build/*.dll
build/*.pdb
build/*.exe
build-ext:
needs: [build-lib]
runs-on: windows-latest
strategy:
matrix:
build: [debug, release]
ext: [normal, unprefixed]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Download Assets
uses: actions/download-artifact@v4
with:
name: lib-win64-${{ matrix.build }}
path: ./tool/gms/extensions/gmdinput
- uses: oven-sh/setup-bun@v2
- name: Build ext
run: |
bun tool/build-ext.js ${{ matrix.ext }}
Get-ChildItem -Path build/ext | Compress-Archive -DestinationPath build/gmdinput-${{ matrix.build }}-${{ matrix.ext }}.yymps -Force
- uses: actions/upload-artifact@v4
with:
name: yymps-${{ matrix.build }}-${{ matrix.ext }}
path: build/*.yymps