forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.19 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
name: build-emscripten
# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on:
push:
if: github.event_name == 'push' && github.event.pull_request == null
paths-ignore:
- '**/*.md'
- 'examples/**'
pull_request:
if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks'
paths-ignore:
- '**/*.md'
- 'examples/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-emscripten:
runs-on: ubuntu-20.04
strategy:
matrix:
cfg:
- {target: emscripten}
env:
TARGET: ${{matrix.cfg.target}}
steps:
- uses: actions/checkout@v3
- name: Docker Step
run: "docker run -di --name emscripten -v $PWD:/src emscripten/emsdk:3.1.21 bash"
- name: Download libs
run: ./scripts/$TARGET/download_libs.sh
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh
- name: Build
run: docker exec -i emscripten sh -c "scripts/ci/$TARGET/build.sh";
- name: Upload Libs
run: scripts/ci/upload_of_lib.sh;
env:
GA_CI_SECRET: ${{ secrets.CI_SECRET }}