forked from Garux/netradiant-custom
-
-
Notifications
You must be signed in to change notification settings - Fork 10
96 lines (82 loc) · 2.37 KB
/
build.yml
File metadata and controls
96 lines (82 loc) · 2.37 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
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
name: build
on: [workflow_dispatch]
jobs:
windows-msys:
name: ${{ matrix.config }} Windows ${{ matrix.arch }}
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch: [x86_64]
cc: [gcc]
include:
# - arch: x86
# msystem: MINGW32
# prefix: mingw-w64-i686
- arch: x86_64
msystem: MINGW64
prefix: mingw-w64-x86_64
defaults:
run:
shell: msys2 {0}
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel ${{ matrix.prefix }}-toolchain ${{ matrix.prefix }}-cmake ${{ matrix.prefix }}-ninja ${{ matrix.prefix }}-qt6-base ${{ matrix.prefix }}-qt6-svg ${{ matrix.prefix }}-libxml2 git unzip p7zip
msystem: ${{ matrix.msystem }}
path-type: minimal
release: false
update: false
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
cmake -S. --preset DefaultNinja -DCMAKE_BUILD_TYPE=Release -DRADIANT_USE_ASSIMP=ON
- name: Build
run: |
cmake --build --preset DefaultNinja
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SourceRadiant-Windows-${{ matrix.arch }}
path: install/*
if-no-files-found: error
linux:
name: ${{ matrix.config }} Linux ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64]
steps:
- name: Install Dependencies
run: |
sudo apt-get -qq update
sudo apt-get -y install mesa-common-dev libjpeg-dev libpng-dev
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.4.2'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
cache: true
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
cmake -S. --preset DefaultNinja -DCMAKE_BUILD_TYPE=Release -DRADIANT_USE_ASSIMP=ON
- name: Build
run: |
cmake --build --preset DefaultNinja
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: SourceRadiant-Linux-${{ matrix.arch }}
path: install/*
if-no-files-found: error