forked from nokotan/EmscriptenLibraries
-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (97 loc) · 3.64 KB
/
CI.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: CI
on: [ push, pull_request ]
jobs:
build-wasm:
runs-on: ubuntu-20.04
strategy:
matrix:
config:
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm'
buildFlags: ''
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm-shared'
buildFlags: '--shared'
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm-side-module'
buildFlags: '--side-module'
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm-simd'
buildFlags: '--simd'
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm-mt-simd'
buildFlags: '--simd --threads'
- container: 'emscripten/emsdk:3.1.61'
artifactName: 'emscripten-3.1.61 wasm-mt'
buildFlags: '--threads'
container:
image: ${{ matrix.config.container }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- name: aquire missing tools
run: |
sudo apt update -y
sudo apt install -y autotools-dev autoconf automake libtool pkg-config
- name: add execute permission
run: |
chmod +x /emsdk/emsdk_env.sh
chmod +x emlib.sh
chmod -R +x scripts
- name: build webp
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} webp || true
- name: build turbojpeg
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} turbojpeg || true
- name: build giflib
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} giflib || true
- name: build libtiff
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} libtiff || true
- name: build ogg
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} ogg || true
- name: build opus
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} opus || true
- name: build opusfile
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} opusfile || true
- name: build opencv
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} opencv || true
- name: build libmpg123
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} libmpg123 || true
- name: build zlib
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} zlib || true
- name: build libpng
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} libpng || true
- name: build freetype
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} freetype || true
- name: build harfbuzz
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} harfbuzz || true
- name: build freetype
run: |
./emlib.sh rebuild ${{ matrix.config.buildFlags }} --flags "-DFT_WITH_HARFBUZZ=On" freetype || true
- name: build soundtouch
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} soundtouch || true
- name: build SDL2
run: |
./emlib.sh build ${{ matrix.config.buildFlags }} SDL2 || true
- name: save files
uses: actions/upload-artifact@v2
with:
name: emlib-artifacts-${{ matrix.config.artifactName }}
path: |
include/**/*
lib/**/*
share/**/*
bin/**/*