forked from fo76utils/nifskope
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (58 loc) · 1.58 KB
/
main.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
name: Build NifSkope
on:
workflow_dispatch:
pull_request:
push:
jobs:
build_windows:
runs-on: windows-latest
name: Build MSYS2
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: 'Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
cache: true
install: 'base-devel mingw-w64-ucrt-x86_64-gcc msys/p7zip mingw-w64-ucrt-x86_64-qt5-base mingw-w64-ucrt-x86_64-qt5-3d mingw-w64-ucrt-x86_64-qt5-imageformats'
- name: 'Build with qmake'
shell: msys2 {0}
run: |
qmake noavx2=1 NifSkope.pro
make -j 12
mv -f release/NifSkope.exe release/NifSkope_noavx2.exe
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: build-win
path: |
release
build_linux:
runs-on: ubuntu-latest
name: Build Linux
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: 'Install required packages'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libsdl2-dev qtbase5-dev qt5-qmake qt5-image-formats-plugins
version: 1.0
- name: 'Build with qmake'
run: |
x86_64-linux-gnu-qmake noavx2=1 NifSkope.pro
make -j 12
mv -f release/NifSkope release/NifSkope_noavx2
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: build-linux
path: 'release'