-
Notifications
You must be signed in to change notification settings - Fork 5
119 lines (95 loc) · 5.33 KB
/
build-test.yml
File metadata and controls
119 lines (95 loc) · 5.33 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
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
# This is a basic workflow to help you get started with Actions
name: Build and Test Electrostatic-Sandbox Framework
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# build-electrostatic:
# # runner images with architectures (variants)
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ 'ubuntu-latest' ]
# name: Build Electrostatic
#
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# - name: Checkout Job
# uses: actions/checkout@v3
#
# - name: Setup Electrostatic-Sandbox Workstation
# run: chmod +rwx ./helper-scripts/setup-environment/setup-sandbox.sh && ./helper-scripts/setup-environment/setup-sandbox.sh
#
# - name: User's Permissions Granting
# run: chmod +rwx ./helper-scripts/project-impl/*.sh && chmod +rwx ./helper-scripts/ci-cd/*.sh
#
# - name: Compiling electrostatic-core Native Binaries
# run: ./helper-scripts/ci-cd/compile-electrostatic.sh ""
#
# - name: Testing electrostatic-core Native Binaries
# run: ./helper-scripts/ci-cd/test-electrostatic.sh "hello_comm.c"
#
# - name: Compiling electrostatic4j Java Binding API
# run: ./helper-scripts/ci-cd/compile-e4j.sh
#
# - name: Testing electrostatic4j Java Binding API
# run: ./helper-scripts/ci-cd/test-e4j.sh
#
# - name: Building electrostatic4j:serial4j
# run: ./helper-scripts/ci-cd/compile-serial4j.sh
build-electrostatic-primer:
# runner images with architectures (variants)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest' ]
name: Build Electrostatic Primer
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Job
uses: actions/checkout@v3
- name: Setup Electrostatic-Sandbox Workstation
run: chmod +rwx ./helper-scripts/setup-environment/setup-sandbox.sh && ./helper-scripts/setup-environment/setup-sandbox.sh
- name: User's Permissions Granting
run: chmod +rwx ./helper-scripts/project-impl/post-compile/post-compile-electrostatic.sh &&
chmod +rwx ./helper-scripts/project-impl/*.sh && chmod +rwx ./helper-scripts/ci-cd/*.sh
- name: Compiling electrostatic-core Native Binaries
run: sudo ./helper-scripts/ci-cd/compile-electrostatic.sh "-primer"
- name: Testing electrostatic-core Native Binaries
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_comm.c" "hello-comm"
# - name: Testing "hello_vector2d.c"
# run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_vector2d.c" "hello-vec2d"
- name: Testing "hello_contiguous_buffer.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_lists.c" "hello-listadt"
- name: Testing "hello_unittest.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_unittest.c" "hello-unittest"
- name: Testing "hello_switching_mux.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_switching_mux.c" "hello-switching-mux"
- name: Testing Arithmos Calculus (2D Vector Rotation)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_vec2d_rotation.c" "test_2d_rotation"
- name: Testing Arithmos Calculus (3D Gimbal Rotation Sequence)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_vec3d_rotation.c" "test_3d_rotation"
- name: Testing Arithmos Calculus (3D Gimbal Rotation around X-axis)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_3d_x_gimbal_rotation.c" "test_3d_x_gimbal_rotation"
- name: Testing Arithmos Calculus (3D Gimbal Rotation around Y-axis)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_3d_y_gimbal_rotation.c" "test_3d_y_gimbal_rotation"
- name: Testing Arithmos Calculus (3D Gimbal Rotation around Z-axis)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_3d_z_gimbal_rotation.c" "test_3d_z_gimbal_rotation"
- name: Testing Arithmos Calculus (Matrix Algebra Operations -- mat_product)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_mat_product.c" "test_mat_product"
- name: Testing Arithmos Calculus (Matrix Algebra Operations -- mat_add)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_matrix_addition.c" "test_mat_addition"
- name: Testing Arithmos Calculus (Matrix Algebra Operations -- mat_iterate_elements)
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "calculus/test_matrix_iteration.c" "test_mat_traversal"
- name: Compiling electrostatic4j Java Binding API
run: sudo ./helper-scripts/ci-cd/compile-e4j.sh
- name: Testing electrostatic4j Java Binding API
run: sudo ./helper-scripts/ci-cd/test-e4j.sh
- name: Building Serial4j Framework
run: sudo ./helper-scripts/ci-cd/compile-serial4j.sh