-
Notifications
You must be signed in to change notification settings - Fork 3
95 lines (78 loc) · 3.56 KB
/
build-test.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
# 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/*.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"
- name: Testing "hello_vector2d.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_vector2d.c"
- name: Testing "hello_contiguous_buffer.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_lists.c"
- name: Testing "hello_unittest.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_unittest.c"
- name: Testing "hello_switching_mux.c"
run: sudo ./helper-scripts/ci-cd/test-electrostatic.sh "hello_switching_mux.c"
- 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