| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
name: Check Dependencies |
| 7 |
|
| 8 |
|
| 9 |
on: [workflow_call] |
| 10 |
|
| 11 |
|
| 12 |
defaults: |
| 13 |
run: |
| 14 |
shell: bash |
| 15 |
|
| 16 |
jobs: |
| 17 |
check_dependencies: |
| 18 |
name: Check Dependencies |
| 19 |
runs-on: ubuntu-latest |
| 20 |
container: kambi/castle-engine-cloud-builds-tools:cge-none |
| 21 |
steps: |
| 22 |
- uses: actions/checkout@v4 |
| 23 |
- name: Set environment |
| 24 |
run: echo "CASTLE_ENGINE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV |
| 25 |
- name: Set environment PATH to include cge installed/bin/ |
| 26 |
run: echo "PATH=${PATH}:${CASTLE_ENGINE_PATH}/installed/bin/" >> $GITHUB_ENV |
| 27 |
|
| 28 |
- name: Build Tools |
| 29 |
run: | |
| 30 |
rm -Rf installed/ |
| 31 |
mkdir -p installed/ |
| 32 |
make clean tools install PREFIX=${CASTLE_ENGINE_PATH}/installed/ |
| 33 |
|
| 34 |
- name: Check Dependencies |
| 35 |
run: | |
| 36 |
cd tools/internal/check_units_dependencies/ |
| 37 |
make |
| 38 |
ls -R |
| 39 |
|
| 40 |
- name: Archive Artifacts |
| 41 |
uses: actions/upload-artifact@v4 |
| 42 |
with: |
| 43 |
name: check_dependencies_log |
| 44 |
path: | |
| 45 |
test-cge-units-dependencies_all_units.txt |
| 46 |
cge_check_units_dependencies.log |
| 47 |
if-no-files-found: error |