-
Notifications
You must be signed in to change notification settings - Fork 33
92 lines (82 loc) · 3.07 KB
/
stargate-ivi-homescreen.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: stargate-ivi-homescreen
on:
pull_request:
types: [ opened, synchronize, reopened, closed ]
release:
types: [ published, created, edited ]
workflow_dispatch:
schedule:
# daily
- cron: '0 0 * * *'
env:
COMPONENT: ivi-homescreen
jobs:
build:
if: ${{ github.server_url != 'https://github.com' && always() }}
runs-on: [self-hosted, large-runner]
container:
image: arene-os-services-cockpit-docker-local-private.artifactory-ha.tmc-stargate.com/ivi-homescreen-dev:latest
credentials:
username: ${{ secrets.TMCSTARGATE_ARTIFACTORY_USERNAME }}
password: ${{ secrets.TMCSTARGATE_ARTIFACTORY_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- name: JFrog CLI
run: |
jfrog --version
jfrog config add \
--interactive=false \
--artifactory-url=https://artifactory-ha.tmc-stargate.com:443/artifactory/ \
--password=${{ secrets.TMCSTARGATE_ARTIFACTORY_PASSWORD }} \
--user=${{ secrets.TMCSTARGATE_ARTIFACTORY_USERNAME }}
jfrog c s
jfrog rt ping
- name: Configure CMake
working-directory: ${{github.workspace}}
run: |
mkdir -p build/release
cmake \
-B build/release \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_NUMBER=${GITHUB_RUN_ID}
mkdir -p build/debug
cmake \
-B build/debug \
-D CMAKE_BUILD_TYPE=Debug \
-D BUILD_NUMBER=${GITHUB_RUN_ID}
- name: Build Debug Packages
working-directory: ${{github.workspace}}/build/debug
run: |
rm -rf _packages || true
make package -j
ls -la _packages
- name: Publish Debug Packages
working-directory: ${{github.workspace}}/build/debug/_packages
run: |
jfrog rt u "(*).tar.gz" ${{secrets.ARTIFACTORY_REPO_GENERIC}} --recursive=false
jfrog rt u "(*).deb" ${{secrets.ARTIFACTORY_REPO_DEBIAN}}/pool/ --deb=focal/main/amd64 --recursive=false
jfrog rt u "(*).rpm" ${{secrets.ARTIFACTORY_REPO_RPM}}/ --recursive=false
- name: Build Release Packages
working-directory: ${{github.workspace}}/build/release
run: |
rm -rf _packages || true
make package -j
ls -la _packages
- name: Publish Release Packages
working-directory: ${{github.workspace}}/build/release/_packages
run: |
jfrog rt u "(*).tar.gz" ${{secrets.ARTIFACTORY_REPO_GENERIC}} --recursive=false
jfrog rt u "(*).deb" ${{secrets.ARTIFACTORY_REPO_DEBIAN}}/pool/ --deb=focal/main/amd64 --recursive=false
jfrog rt u "(*).rpm" ${{secrets.ARTIFACTORY_REPO_RPM}}/ --recursive=false
- name: Release Info
working-directory: ${{github.workspace}}/build/release/shell
run: |
ls -la homescreen
echo "Strip executable"
strip homescreen
ls -la homescreen
echo "List Dependencies"
ldd homescreen