-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.78 KB
/
build_x86.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
name: CI
on:
# triggered when refereneced in another workflow
workflow_call:
# automatically triggered by push events on all branches except for main
push:
branches:
- 'feature/*' # run on feature branches
- 'main' # run on main
- 'cid-test' # run on cid-test for testing
jobs:
# build and run the TASTE Docker container
build:
# run on Linux to use Docker
runs-on: ubuntu-latest
steps:
# checkout in GitHub workspace
- name: Checkout repository
uses: actions/checkout@v3
- name: Select mocking SDL implementations for non-SDL functions
run: perl -i -pe 's/(language)="(?!SDL).*?" (default_implementation)="(?!default).*?"/$1="SDL" $2="x86"/g' obc-firmware/interfaceview.xml
- name: Select Ada code generation backend for SDL functions
run: perl -i -pe 's/(language="SDL".*\n.*name="TASTE_IV_Properties::Default_Codegen" value)="(.*?)"/$1="Ada"/g' obc-firmware/interfaceview.xml
- name: Make Docker-run.sh executable
run: chmod +x Docker-run.sh
- name: Build Docker container
run: docker build -t taste:bullseye-fork .
# detached run with bind mount of TASTE firmware directory
- name: Run Docker container
run: ./Docker-run.sh
- name: Build OBC Firmware for default deployment (x86 linux)
run: docker exec -i taste-fork bash -c "
source /root/.bashrc.taste &&
cd /root/work/obc-firmware/obc-firmware &&
make interfaceview debug
"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build_x86
path: |
obc-firmware/work/binaries/*
obc-firmware/work/*/GUI/src/*.py
obc-firmware/work/build/*