Update jetson_online.yml #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@main | |
with: | |
base_image: https://developer.nvidia.com/embedded/l4t/r32_release_v7.1/jp_4.6.1_b110_sd_card/jetson_xavier_nx/jetson-nx-jp461-sd-card-image.zip | |
cpu: cortex-a53 | |
bootpartition: | |
rootpartition: 1 | |
image_additional_mb: 4000 | |
copy_repository_path: /opt | |
copy_artifact_path: CMake | |
import_github_env: true | |
commands: | | |
cat /etc/apt/sources.list | |
ls /etc/apt/sources.list.d/ | |
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" |