-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.35 KB
/
build_emscripten.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
name: Emscripten
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
name: Static Library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
# Make sure to set a version number!
version: 3.1.27
# This is the name of the cache folder.
# The cache folder will be placed in the build directory,
# so make sure it doesn't conflict with anything!
actions-cache-folder: 'emsdk-cache'
- name: Verify EMSDK
run: emcc -v
- name: Update Packages
run: |
sudo apt-get update
- name: Configure Release
run: emcmake cmake -G "Unix Makefiles" -S "${{ github.workspace }}" -B "${{ github.workspace }}/cmake-build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" -DCMAKE_VERBOSE_MAKEFILE=YES
- name: Build Release
run: cmake --build "${{ github.workspace }}/cmake-build" --parallel
- name: Install
run: cmake --install "${{ github.workspace }}/cmake-build"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: projectm-eval-emscripten-latest
path: install/*