-
Notifications
You must be signed in to change notification settings - Fork 0
145 lines (123 loc) · 3.68 KB
/
release.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
141
142
143
144
145
name: Release Build
on:
push:
tags:
- v*
jobs:
build-web:
name: Deploy Web
runs-on: ubuntu-latest
env:
EM_VERSION: "latest"
EM_CACHE_FOLDER: "emsdk-cache"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- id: cache-system-libraries
uses: actions/cache@v4
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v12
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Build
run: |
emcmake cmake -G "Unix Makefiles" .
emmake make -j4
# - name: Deploy to A.D.S. Games
# uses: adsgames/deploy-to-adsgames@v1
# with:
# project-id: jimfarm
# platform: WEB
# bucket-access-key: ${{ secrets.LINODE_BUCKET_ACCESS_KEY }}
# bucket-secret-key: ${{ secrets.LINODE_BUCKET_SECRET_KEY }}
# api-key: ${{ secrets.ADSGAMES_API_KEY }}
build-linux:
name: Deploy Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Libraries
run: |
sudo apt update
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
- name: Build
run: |
cmake -G "Unix Makefiles" .
make -j4
# - name: Deploy to A.D.S. Games
# uses: adsgames/deploy-to-adsgames@v1
# with:
# project-id: jimfarm
# platform: LINUX
# bucket-access-key: ${{ secrets.LINODE_BUCKET_ACCESS_KEY }}
# bucket-secret-key: ${{ secrets.LINODE_BUCKET_SECRET_KEY }}
# api-key: ${{ secrets.ADSGAMES_API_KEY }}
build-mac:
name: Deploy Mac OS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Libraries
run: |
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer
- name: Build
run: |
cmake -G "Unix Makefiles" .
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/include"
make -j4
# - name: Deploy to A.D.S. Games
# uses: adsgames/deploy-to-adsgames@v1
# with:
# project-id: jimfarm
# platform: MAC
# bucket-access-key: ${{ secrets.LINODE_BUCKET_ACCESS_KEY }}
# bucket-secret-key: ${{ secrets.LINODE_BUCKET_SECRET_KEY }}
# api-key: ${{ secrets.ADSGAMES_API_KEY }}
build-windows:
name: Deploy Windows
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
install: >-
make
git
mingw-w64-x86_64-gcc-libs
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-SDL2_mixer
mingw-w64-x86_64-SDL2_image
mingw-w64-x86_64-SDL2_ttf
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Build
run: |
cmake -G Ninja .
ninja
# - name: Deploy to A.D.S. Games
# uses: adsgames/deploy-to-adsgames@v1
# with:
# project-id: jimfarm
# platform: WINDOWS
# bucket-access-key: ${{ secrets.LINODE_BUCKET_ACCESS_KEY }}
# bucket-secret-key: ${{ secrets.LINODE_BUCKET_SECRET_KEY }}
# api-key: ${{ secrets.ADSGAMES_API_KEY }}