-
Notifications
You must be signed in to change notification settings - Fork 11
140 lines (132 loc) · 3.86 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: build
on:
push:
branches: [ "master", "ci" ]
pull_request:
branches: [ "master", "ci" ]
jobs:
linux:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
cc: gcc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install dependencies (Linux)
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe"
sudo apt-get update -y -qq
sudo apt-get install libasound2-dev libpulse-dev libwebp-dev libxrandr-dev tar
- name: configure
env:
CC: ${{ matrix.cc }}
run: |
./configure --with-internal-libs
- name: reconfigure extlibs (ogg)
run: |
cd extlib/src/libogg-1.3.5
autoreconf -fi
autoupdate
- name: build
run: |
NCPUS=$(getconf _NPROCESSORS_ONLN)
make -j $NCPUS VERBOSE=true
make -j $NCPUS VERBOSE=true tools
make check
tar -czvf onscripter-en.Linux.x86-64.tar.gz \
onscripter-en \
README.md \
COPYING \
CHANGES \
tools/ns2conv \
tools/nsaconv \
tools/sardec \
tools/batchconv \
tools/nbzdec \
tools/ns2make \
tools/nsamake \
tools/sarconv \
tools/ns2dec \
tools/nsadec \
tools/nscdec \
tools/nscmake \
tools/sarmake
- uses: actions/upload-artifact@v3
with:
name: Linux x86-64 Build
path: ${{ github.workspace }}/onscripter-en.Linux.x86-64.tar.gz
windows:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
cc: gcc
sys: mingw64
env: x86_64
arch: x86-64
- os: windows-latest
cc: gcc
sys: mingw32
env: i686
arch: i686
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install:
mingw-w64-${{matrix.env}}-SDL
mingw-w64-${{matrix.env}}-SDL_ttf
mingw-w64-${{matrix.env}}-SDL_mixer
mingw-w64-${{matrix.env}}-SDL_image
mingw-w64-${{matrix.env}}-bzip2
mingw-w64-${{matrix.env}}-libogg
mingw-w64-${{matrix.env}}-libvorbis
mingw-w64-${{matrix.env}}-freetype
mingw-w64-${{matrix.env}}-smpeg
mingw-w64-${{matrix.env}}-iconv
mingw-w64-${{matrix.env}}-zlib
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-autotools
autotools
make
zip
- shell: msys2 {0}
name: Build
run: |
NCPUS=$(getconf _NPROCESSORS_ONLN)
make -f ./msys2/Makefile.Windows.MSYS2.${{matrix.arch}}.insani -j $NCPUS VERBOSE=true
make -f ./msys2/Makefile.Windows.MSYS2.${{matrix.arch}}.insani -j $NCPUS VERBOSE=true tools
make -f ./msys2/Makefile.Windows.MSYS2.${{matrix.arch}}.insani check
zip onscripter-en.Windows.${{matrix.arch}}.zip \
onscripter-en.exe \
README.md \
COPYING \
CHANGES \
tools/ns2conv.exe \
tools/nsaconv.exe \
tools/sardec.exe \
tools/batchconv.exe \
tools/nbzdec.exe \
tools/ns2make.exe \
tools/nsamake.exe \
tools/sarconv.exe \
tools/ns2dec.exe \
tools/nsadec.exe \
tools/nscdec.exe \
tools/nscmake.exe \
tools/sarmake.exe
- uses: actions/upload-artifact@v3
with:
name: Windows ${{matrix.arch}} Build
path: ${{ github.workspace }}/onscripter-en.Windows.${{matrix.arch}}.zip