forked from faasm/cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (85 loc) · 3.1 KB
/
tests.yml
File metadata and controls
87 lines (85 loc) · 3.1 KB
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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
checks:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
container:
image: faasm/cpp-sysroot:0.1.8
defaults:
run:
working-directory: /code/cpp
steps:
# --- Update code --
- name: "Checkout code"
uses: actions/checkout@v3
with:
submodules: true
- name: "Update Faabric submodule"
run: git submodule update --init -f third-party/faabric
- name: "Update FFI submodule"
run: git submodule update --init -f third-party/libffi
- name: "Update FFmpeg submodule"
run: git submodule update --init -f third-party/FFmpeg
- name: "Update ImageMagick submodule"
run: git submodule update --init -f third-party/ImageMagick
- name: "Update libpng submodule"
run: git submodule update --init -f third-party/libpng
- name: "Update zlib submodule"
run: git submodule update --init -f third-party/zlib
- name: "Update wasi-libc submodule"
run: git submodule update --init -f third-party/wasi-libc
- name: "Logging #1"
run: cat .gitmodules
- name: "Logging #2"
run: ls -lart && ls -l ./third-party
- name: "Update tensorflow submodule"
run: git submodule update --init -f third-party/tensorflow
# --- Build libraries to wasm ---
- name: "Build libc"
run: ./bin/inv_wrapper.sh libc
- name: "Build libfaasm"
run: ./bin/inv_wrapper.sh libfaasm
- name: "Build libfaasmp"
run: ./bin/inv_wrapper.sh libfaasmp
- name: "Build libfaasmpi"
run: ./bin/inv_wrapper.sh libfaasmpi
- name: "Build libffi"
run: ./bin/inv_wrapper.sh libffi
- name: "Build libfake"
run: ./bin/inv_wrapper.sh libfake
- name: "Build libemscripten"
run: ./bin/inv_wrapper.sh libemscripten
- name: "Build FFmpeg"
run: ./bin/inv_wrapper.sh ffmpeg
- name: "Build zlib"
run: ./bin/inv_wrapper.sh zlib
- name: "Build libpng"
run: ./bin/inv_wrapper.sh libpng
- name: "Build ImageMagick"
run: ./bin/inv_wrapper.sh imagemagick
- name: "Build Tensorflow lite"
run: ./bin/inv_wrapper.sh tensorflow.lite
# --- Build functions to wasm ---
- name: "Build the functions"
run: ./bin/inv_wrapper.sh func.local --clean
# --- Build libraries natively ---
- name: "Build libfaasm native"
run: ./bin/inv_wrapper.sh libfaasm --native --clean
- name: "Build libfaasmp native"
run: ./bin/inv_wrapper.sh libfaasmp --native --clean
- name: "Build libfaasmpi native"
run: ./bin/inv_wrapper.sh libfaasmpi --native --clean
# --- Formatting ---
- name: "Check python"
run: source venv/bin/activate && ./bin/check_python.sh
shell: bash
- name: "Run C/C++ formatting"
run: ./bin/run_clang_format.sh
- name: "Check no formatting changes"
run: git diff --exit-code -- :^third-party