-
Notifications
You must be signed in to change notification settings - Fork 129
55 lines (47 loc) · 1.39 KB
/
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
53
54
55
name: Emscripten
on:
workflow_dispatch
jobs:
Build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
name: Linux
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout exploragram
uses: actions/checkout@v4
with:
repository: BrunoLevy/exploragram
path: src/lib/exploragram
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install emscripten
- name: Configure
run: |
./configure.sh Emscripten-clang
- name: Build
run: |
cd build/Emscripten-clang-Release;\
make -j2 2>&1 |tee ../../build_log.txt
- name: Generate webpages
run: |
tools/gen_all_emscripten_htmls.sh build/Emscripten-clang-Release/bin \
geogram_demo_Delaunay2d geogram_demo_Delaunay3d \
geogram_demo_Evert geogram_demo_Raytrace \
geobox geocod geoshade
- name: Publish programs and webpages on gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/Emscripten-clang-Release/bin
destination_dir: emscripten