forked from sezero/glide
-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (67 loc) · 2.2 KB
/
build_glide3_voodoo45_msvc.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build Glide3x for Voodoo3/4/5 Library (MSVC)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_msvc:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
defaults:
run:
working-directory: "glide3x/h5"
steps:
- uses: ilammy/setup-nasm@v1
- name: Checkout
uses: actions/checkout@v2
- name: Create Artifact Directory
run: |
mkdir ${{ github.workspace }}/artifacts
- name: Generate FXGasm Tool
working-directory: "glide3x/h5/glide3/src/"
run: |
mkdir fxgasm_tool/bin
cd fxgasm_tool/bin
cmake -DCMAKE_GENERATOR_PLATFORM=Win32 ..
cmake --build .
- name: Generate Header Files
working-directory: "glide3x/h5/glide3/src/"
run: |
./fxgasm_tool/bin/Debug/fxgasm.exe -inline > fxinline.h
./fxgasm_tool/bin/Debug/fxgasm.exe -hex > fxgasm.h
- name: Generate Fx Build Number Tool
working-directory: "glide3x/h5/glide3/src/"
run: |
mkdir fxbldno_tool/bin
cd fxbldno_tool/bin
cmake -DCMAKE_GENERATOR_PLATFORM=Win32 ..
cmake --build .
- name: Generate Build Number Header Files
working-directory: "glide3x/h5/glide3/src/"
run: |
./fxbldno_tool/bin/Debug/fxbldno.exe > fxbldno.h
- name: Generate Glide3x Dynamic Link Library (Windows, x64)
run: |
mkdir bin_win_x64
cd bin_win_x64
cmake -DCMAKE_GENERATOR_PLATFORM=Win32 ..
cmake --build . --config ${{ matrix.build_type }}
- name: Generate Glide3x Dynamic Link Library (Windows, x32)
run: |
mkdir bin_win_x32
cd bin_win_x32
cmake -DCMAKE_GENERATOR_PLATFORM=Win32 ..
cmake --build . --config ${{ matrix.build_type }}
- name: Upload Built Glide3x Library
uses: actions/upload-artifact@v2
with:
name: msvc_glide3x_voodoo345_${{ matrix.build_type }}
path: |
glide3x/h5/bin_win_x32/Release/*.dll
glide3x/h5/bin_win_x32/Debug/*.dll
glide3x/h5/bin_win_x64/Release/*.dll
glide3x/h5/bin_win_x64/Debug/*.dll