-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (96 loc) · 3.71 KB
/
build.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Build
on:
push:
branches: [ master, rework ]
workflow_dispatch: # nothing here
env:
BUILD_DIR: '${{github.workspace}}/build'
QT_VERSION: '6.5.3'
QT_MODULES: 'qtimageformats'
jobs:
build-linux:
strategy:
matrix:
build_type: [ Debug, Release ]
target: [ Source, StrataSource ]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: ${{env.QT_VERSION}}
host: linux
target: desktop
modules: ${{env.QT_MODULES}}
dir: '${{github.workspace}}/libs/Qt'
cache: true
- name: Configure CMake
if: ${{matrix.target == 'StrataSource'}}
run: cmake -G "Unix Makefiles" -B build -DCHAOS_INITIATIVE=ON -DCOMPRESSVTF=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DQT_BASEDIR='${{github.workspace}}/libs/Qt/Qt/6.5.3/gcc_64'
- name: Configure CMake
if: ${{matrix.target == 'Source'}}
run: cmake -G "Unix Makefiles" -B build -DCOMPRESSVTF=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DQT_BASEDIR='${{github.workspace}}/libs/Qt/Qt/6.5.3/gcc_64'
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: vtf-edit-revitalized-linux-${{matrix.build_type}}-${{matrix.target}}
path: |
${{github.workspace}}/build/VTF_Edit_Revitalized
${{github.workspace}}/build/tls/*.so*
${{github.workspace}}/build/imageformats/*.so*
${{github.workspace}}/build/platforms/*.so*
${{github.workspace}}/build/*.so*
build-msvc:
strategy:
matrix:
build_type: [ Debug, Release ]
target: [ Source, StrataSource ]
runs-on: windows-2019
defaults:
run:
shell: cmd
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install Qt6
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
dir: '${{github.workspace}}/libs/Qt'
version: ${{env.QT_VERSION}}
arch: win64_msvc2019_64
modules: ${{env.QT_MODULES}}
cache: true
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Configure CMake
if: ${{matrix.target == 'StrataSource'}}
env:
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}}
run: cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCOMPRESSVTF=ON -DCHAOS_INITIATIVE=ON -DQT_BASEDIR=${{github.workspace}}\libs\Qt\Qt\6.5.3\msvc2019_64
- name: Configure CMake
if: ${{matrix.target == 'Source'}}
env:
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}}
run: cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCOMPRESSVTF=ON -DQT_BASEDIR=${{github.workspace}}\libs\Qt\Qt\6.5.3\msvc2019_64
- name: Build
run: cmake --build build --config ${{matrix.build_type}}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: vtf-edit-revitalized-windows-${{matrix.build_type}}-${{matrix.target}}
path: |
${{github.workspace}}\build\*.exe
${{github.workspace}}\build\*.dll
${{github.workspace}}\build\platforms\*.dll
${{github.workspace}}\build\tls\*.dll
${{github.workspace}}\build\imageformats\*.dll