-
Notifications
You must be signed in to change notification settings - Fork 2
109 lines (89 loc) · 2.73 KB
/
makefile.yaml
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
# Builds Open Manifold, but only the bare executable
# Release builds are made in a separate yaml
name: Build Test
on:
push:
branches: ["main"]
paths: src/**
pull_request:
branches: ["main"]
paths: src/**
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
- name: Build package
run: |
make
- name: Upload package
uses: actions/[email protected]
with:
name: Open-Manifold-git-linux
path: bin
retention-days: 1
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Get dependencies
run: |
brew install SDL2 SDL2_image SDL2_mixer
- name: Build package
run: |
make LDFLAGS:="-lSDL2 -lSDL2_image -lSDL2_mixer"
- name: Upload package
uses: actions/[email protected]
with:
name: Open-Manifold-git-macOS
path: bin
retention-days: 1
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup directories
run: |
mkdir SDL2-dl
mkdir lib
- name: Download SDL2
uses: albin-johansson/download-sdl2@v2
with:
version: 2.0.18
sources_destination: SDL2-dl
binaries_destination: .
- name: Download SDL2 Image
uses: albin-johansson/download-sdl2-image@v2
with:
version: 2.0.5
sources_destination: SDL2-dl
binaries_destination: .
- name: Download SDL2 Mixer
uses: albin-johansson/download-sdl2-mixer@v1
with:
version: 2.6.2
sources_destination: SDL2-dl
binaries_destination: .
- name: Configure SDL2
run: |
mkdir include/SDL2
Copy-Item -Force SDL2-dl/SDL2-2.0.18/include/* include/SDL2
Copy-Item -Force SDL2-dl/SDL2_image-2.0.5/include/* include/SDL2
Copy-Item -Force SDL2-dl/SDL2_mixer-2.6.2/include/* include/SDL2
Copy-Item -Force SDL2-dl/SDL2-2.0.18/lib/x64/* lib
Copy-Item -Force SDL2-dl/SDL2_image-2.0.5/lib/x64/* lib
Copy-Item -Force SDL2-dl/SDL2_mixer-2.6.2/lib/x64/* lib
dir lib
- name: Build package
run: |
make LDFLAGS:="-Llib -static-libgcc -static-libstdc++ -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lstdc++fs"
- name: Upload package
uses: actions/[email protected]
with:
name: Open-Manifold-git-win64
path: bin
retention-days: 1