File: emscripten.yml

package info (click to toggle)
geogram 1.9.6-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 15,436 kB
  • sloc: cpp: 143,890; ansic: 10,098; perl: 1,430; sh: 1,199; yacc: 522; lex: 182; python: 157; javascript: 149; makefile: 17
file content (56 lines) | stat: -rw-r--r-- 1,518 bytes parent folder | download
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
name: Emscripten

on:
  workflow_dispatch

jobs:
  Build:
    name: ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-22.04]
        include:
          - os: ubuntu-22.04
            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:
          deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_RUN }}
          external_repository: BrunoLevy/geogram.run
          publish_dir: ./build/Emscripten-clang-Release/bin
          force_orphan: true   # to clean history, we do not need it