forked from Kitware/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (68 loc) · 2.09 KB
/
jetson_online.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
name: Build Jetson ONLINE
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
overprovision-lvm: 'true'
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Emulating Jetson
id: qemu
uses: pguyot/arm-runner-action@v2
with:
base_image: https://fra1.digitaloceanspaces.com/openhd-images/jetson/2022-02-03%20-%20Open.HD-2.0.0-507-g5cc5c64-jetson-nano-4gb-bionic.7z
cpu: cortex-a53
bootpartition:
rootpartition: 1
image_additional_mb: 4000
copy_repository_path: /opt
copy_artifact_path: CMake
import_github_env: true
commands: |
ls -a
cd /opt/CMake
apt update
apt upgrade -y
apt install -y cmake
gem install fpm
apt install -y libssl-dev openssl1.0
apt install -y qt5-default
mkdir build
cd build
cmake -DBUILD_QtDialog=ON -DQT_QMAKE_EXECUTABLE=/usr/lib/qt5/bin/qmake ../
make DESTDIR=cmake-package -j4 install
fpm -a arm64 -s dir -t deb -n cmake -v 3.22.5 -C cmake-package -p cmake_VERSION_ARCH.deb
- name: Upload to Github
uses: 'actions/upload-artifact@v2'
with:
name: "QOpenHd"
path: |
CMake/build/*.deb
- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: "openhd-2-2-evo"
distro: "ubuntu"
release: "bionic"
republish: "true" # needed ONLY if version is not changing
file: "CMake/build/*.deb"