-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (98 loc) · 3.12 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
name: Non regression CI
on:
workflow_dispatch:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# compilation_msys:
# name: Compilation on Msys2
# runs-on: windows-latest
# defaults:
# run:
# shell: msys2 {0}
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# submodules: true
# - name: Install Msys2 packages
# uses: msys2/setup-msys2@v2
# with:
# msystem: MINGW64
# install: mingw-w64-x86_64-gcc mingw-w64-x86_64-bc mingw-w64-x86_64-pkg-config
compilation_linux:
name: Compilation on Linux
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install bc pkg-config lcov
- name: Compile Example 00
run: |
(cd examples/00 && make -j`nproc --all` && make run)
(cd examples/00 && make -j`nproc --all` && ./build/HelloWorld00)
- name: Compile Example 01
run: |
(cd examples/01 && make -j`nproc --all` && make run)
(cd examples/01 && make -j`nproc --all` && ./build/HelloWorld01)
- name: Compile Example 02
run: |
(cd examples/02 && make -j`nproc --all` && make run)
(cd examples/02 && make -j`nproc --all` && ./build/HelloWorld02)
compilation_emscripten:
name: Compilation on Emscripten
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install bc pkg-config lcov
- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v11
- name: Compile Example 00
run: |
(cd examples/00 && emmake make -j`nproc --all` && echo "emmake make run")
- name: Compile Example 01
run: |
(cd examples/01 && emmake make -j`nproc --all` && echo "emmake make run")
- name: Compile Example 02
run: |
(cd examples/02 && emmake make -j`nproc --all` && echo "emmake make run")
compilation_macos:
name: Compilation on MacOS X
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install packages
run: |
brew install bc pkg-config lcov
- name: Compile Example 00
run: |
(cd examples/00 && make -j`sysctl -n hw.logicalcpu` && make run)
(cd examples/00 && make -j`sysctl -n hw.logicalcpu` && ./build/HelloWorld00)
- name: Compile Example 01
run: |
(cd examples/01 && make -j`sysctl -n hw.logicalcpu` && make run)
(cd examples/01 && make -j`sysctl -n hw.logicalcpu` && ./build/HelloWorld01)
- name: Compile Example 02
run: |
(cd examples/02 && make -j`sysctl -n hw.logicalcpu` && make run)
(cd examples/02 && make -j`sysctl -n hw.logicalcpu` && ./build/HelloWorld02)