-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.3 KB
/
build.yaml
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
name: C/C++ CI
on: [push,pull_request]
jobs:
build-any:
strategy:
matrix:
os: [ubuntu-latest, macos-13]
out_format: [ANSI, HTML5]
print: [DEFAULT, ALL_SCRIPTS]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: g++ -std=c++11 -Wall -Wno-unused-function -Werror -DPRINT_${{ matrix.print }} -D${{ matrix.out_format }} list-rooms.cpp -o soe-script-dumper
- name: Upload
uses: actions/upload-artifact@v4
with:
name: soe-script-dumper_${{ matrix.os }}_${{ matrix.print }}_${{ matrix.out_format }}
path: soe-script-dumper
if-no-files-found: error
build-windows:
strategy:
matrix:
os: [windows-latest]
out_format: [ANSI, HTML5]
print: [DEFAULT, ALL_SCRIPTS]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Build (Windows)
run: cl.exe /DPRINT_${{ matrix.print }} /D${{ matrix.out_format }} /EHsc /WX list-rooms.cpp /link /out:soe-script-dumper.exe
- name: Upload (Windows)
uses: actions/upload-artifact@v4
with:
name: soe-script-dumper_${{ matrix.os }}_${{ matrix.print }}_${{ matrix.out_format }}
path: soe-script-dumper.exe
if-no-files-found: error