forked from sulix/omnispeak
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.34 KB
/
build-default.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
name: "CI: Build (Default)"
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Dependencies
run: |
sudo apt update
sudo apt install libsdl2-dev mingw-w64 libasound2-dev libieee1284-3-dev
wget https://github.com/andrewwutw/build-djgpp/releases/download/v3.1/djgpp-linux64-gcc1020.tar.bz2
sudo tar xf djgpp-linux64-gcc1020.tar.bz2 -C /usr/local
wget -nc https://davidgow.net/stuff/csdpmi7b.zip
mkdir csdpmi7b
unzip csdpmi7b.zip -d csdpmi7b/
sudo mkdir -p /opt
- name: Build (Linux)
working-directory: ./src
run: |
make WITH_ALSA=1 WITH_IEEE1284=1
- name: Build (Windows)
working-directory: ./src
run: |
make PLATFORM=win32
make PLATFORM=win64
- name: Build (MS-DOS)
working-directory: ./src
run: |
make PLATFORM=dos
cp ../csdpmi7b/bin/CWSDPMI.EXE ../bin-dos
- name: Upload (Linux)
uses: actions/upload-artifact@v2
with:
name: Linux Build
path: bin/
- name: Upload (Windows)
uses: actions/upload-artifact@v2
with:
name: Windows Build
path: bin-win*/
- name: Upload (MS-DOS)
uses: actions/upload-artifact@v2
with:
name: MS-DOS Build
path: bin-dos/