-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
50 lines (47 loc) · 1.51 KB
/
action.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
name: 'F´ Project Builder Action'
description: 'Build and Test F´ Projects in CI'
author: 'F´'
inputs:
build_location:
description: "Path to F´ module to build. E.g. MyDeployment/"
required: true
fprime_version:
required: false
description: "F´ version to use. Defaults to project submodule version."
default: ""
fprime_location:
required: false
description: "Relative path from project root to F´ submodule"
default: "./fprime"
run_unit_tests:
description: "Run a Unit Test build (--ut) instead of a normal build [true|false] (default: false)"
required: false
default: "false"
target_platform:
description: "F´ build platform (e.g. Linux, Darwin). Default specified in settings.ini."
required: false
default: ""
runs:
using: "composite"
steps:
- if: inputs.fprime_version != ''
run: |
cd ${{ inputs.fprime_location }}
git checkout ${{ inputs.fprime_version }}
shell: bash
- run: |
pip3 install -r ${{ inputs.fprime_location }}/requirements.txt
shell: bash
- if: inputs.run_unit_tests == 'false'
working-directory: ${{ inputs.build_location }}
run: |
fprime-util generate ${{ inputs.target_platform }}
fprime-util build ${{ inputs.target_platform }}
shell: bash
- if: inputs.run_unit_tests == 'true'
working-directory: ${{ inputs.build_location }}
run: |
fprime-util generate --ut
fprime-util build --ut
fprime-util check
shell: bash