-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (58 loc) · 2.1 KB
/
tests.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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
# Cancel previous running actions for the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
checks:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: faasm.azurecr.io/cpp-sysroot:0.6.0
steps:
# --- Update code ---
- name: "Checkout code"
uses: actions/checkout@v4
with:
submodules: true
# See actions/checkout#766
- name: "Set the GH workspace as a safe git directory"
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# --- Build libraries to wasm ---
- name: "Build libfaasm"
run: ./bin/inv_wrapper.sh libfaasm
- name: "Build libfaasm with threads support"
run: ./bin/inv_wrapper.sh libfaasm --threads
- 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 libemscripten with threads support"
run: ./bin/inv_wrapper.sh libemscripten --threads
- name: "Build zlib"
run: ./bin/inv_wrapper.sh zlib
# --- 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: "Format code"
run: ./bin/inv_wrapper.sh format-code --check