-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.42 KB
/
build-chain.yaml
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
name: Build missing packages
on:
workflow_dispatch:
inputs:
ros_distro:
type: string
required: true
default: humble
description: "The ROS distro"
run-name: Build missing packages for "${{ inputs.ros_distro }}", invoked by @${{ github.actor }}
jobs:
build:
runs-on: lcas
steps:
- uses: addnab/docker-run-action@v3
with:
username: lcas
password: lincoln
registry: lcas.lincoln.ac.uk
image: lcas.lincoln.ac.uk/lcas/docker-dpkg-build:master
options: --rm -e GH_API_TOKEN=${{ secrets.GH_API_TOKEN }} -e ROS_DISTRO=${{ github.event.inputs.ros_distro}}
run: |
#rosdep update
#apt-get update
# manually (re-)installing empy again for ros_buildfarm
pip install empy
./build_chain.py
- name: "copy from staging to lcas"
run: |
APTLY_API="https://lcas.lincoln.ac.uk/apt/api"
repo=lcas_ros
echo "Updating published repo..."
curl -X PUT -H 'Content-Type: application/json' --data "{\"ForceOverwrite\": true, \"SourceKind\": \"local\", \"Sources\": [{\"Name\": \"$repo\"}]}" -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/publish/lcas/jammy
curl -ograph.svg -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/graph.svg
- name: Archive graphs results
uses: actions/upload-artifact@v3
with:
name: repo-graph
path: ./graph.svg