-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
43 lines (42 loc) · 1.67 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
inputs:
distribution:
description: 'Linux distribution'
required: true
distribution_version:
description: 'Version of the Linux distribution'
required: true
architecture:
description: 'CPU architecture'
required: true
build_root:
description: 'Directory with the distribution packages should be unpacked'
required: true
package_requirements:
description: 'File containing the list of packages to install'
required: true
cross_gcc:
description: 'Define the GCC cross-compiler to use (its headers/libraries will be copied into build_root)'
required: false
runs:
using: "composite"
steps:
- run: python -m pip install setuptools pysqlite3 # Installing dependencies
shell: bash
- name: Build cross-compilation directory
run: |
export PYTHONPATH=${{ github.action_path }}:$PYTHONPATH
${{ inputs.cross_gcc == '' }} \
&& python -m cross_sysroot.cross_sysroot \
--distribution ${{ inputs.distribution }} \
--distribution-version ${{ inputs.distribution_version }} \
--architecture ${{ inputs.architecture }} \
--build-root ${{ inputs.build_root }} \
${{ inputs.package_requirements }} \
|| python -m cross_sysroot.cross_sysroot \
--distribution ${{ inputs.distribution }} \
--distribution-version ${{ inputs.distribution_version }} \
--architecture ${{ inputs.architecture }} \
--build-root ${{ inputs.build_root }} \
--cross-gcc ${{ inputs.cross_gcc }} \
${{ inputs.package_requirements }}
shell: bash