-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 927 Bytes
/
Build.yml
File metadata and controls
31 lines (28 loc) · 927 Bytes
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
on: [workflow_dispatch]
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout raylib
uses: actions/checkout@v3
with:
ref: master
repository: raysan5/raylib
path: raylib
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.12
actions-cache-folder: "emsdk-cache"
- name: Build raylib for Web
run: |
cd raylib
emcmake cmake \
-B artifacts \
-D BUILD_EXAMPLES=Off \
-D PLATFORM=Web
cmake --build artifacts
- uses: actions/upload-artifact@v3
with:
name: libraylib.a
path: raylib/artifacts/raylib/libraylib.a