-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.51 KB
/
build-lib.yml
File metadata and controls
43 lines (33 loc) · 1.51 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
# This is a basic workflow to help you get started with Actions
name: Build Electrostatic-Library
# 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-app:
# runner images with architectures (variants)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest' ]
name: Build Electrostatic Library
# 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/project-impl/post-compile/*.sh
- name: Building Electrostatic-Library Binaries
run: sudo ./helper-scripts/project-impl/compile-all.sh
- name: Building Electrostatic-Library Examples
run: sudo ./helper-scripts/project-impl/compile-examples.sh "-m64" "main.cpp" "executable-example" "linux" "x86-64" "x86-64/exe"
- name: Testing Electrostatic-app ELF
run: sudo ./cmake-build/linux/x86-64/exe/executable-example.elf