blob: 8d7659879093628c9ccd6a05de868e4ceea00fbb (
plain)
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
|
name: Raylib to Itch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# install asdf
- name: asdf-install
run: |
sudo apt install curl git zip
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
run: . $HOME/.asdf/completions/asdf.bash
# install emcc
- name: install-emscripten
run: |
asdf plugin add emsdk
asdf install emsdk
# compile raylib
- name: compile-raylib
run: |
mkdir lib && mkdir lib/web
cd dependencies/raylib/src
make PLATFORM=PLATFORM_WEB -B -e
cp libraylib.a ../../../lib/web/
# make
- name: build
run: |
make web
cd output
zip game.zip index.*
# upload zip
|