ivi-homescreen #98
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: 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: | |
ivi-homescreen: | |
if: ${{ github.server_url == 'https://github.com' && github.ref != 'refs/heads/agl' && always() }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Install packages | |
run: | | |
echo ${{ github.server_url }} | |
sudo apt-get -y install \ | |
libwayland-dev wayland-protocols libxkbcommon-dev \ | |
mesa-common-dev libegl1-mesa-dev libgles2-mesa-dev mesa-utils | |
cmake --version | |
gcc --version | |
- name: Configure Debug | |
run: | | |
mkdir -p ${{github.workspace}}/build/debug | |
cmake \ | |
-B ${{github.workspace}}/build/debug \ | |
-D CMAKE_BUILD_TYPE=Debug \ | |
-D CMAKE_STAGING_PREFIX=${{github.workspace}}/build/staging/usr/local \ | |
-D BUILD_NUMBER=${GITHUB_RUN_ID} \ | |
-D CMAKE_VERBOSE_MAKEFILE=ON | |
- name: Build Debug Packages | |
working-directory: ${{github.workspace}}/build/debug | |
run: | | |
rm -rf _packages || true | |
make homescreen VERBOSE=1 | |
make package VERBOSE=1 | |
ls -la _packages | |
- name: Publish Debug Artifact TGZ | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen-dbg.Linux.tar.gz.zip | |
path: | | |
build/debug/_packages/ivi-homescreen-dbg-*-Linux.tar.gz | |
- name: Publish Debug Artifact Debian | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen-dbg.amd64.deb.zip | |
path: | | |
build/debug/_packages/ivi-homescreen-dbg*_amd64.*deb | |
- name: Publish Debug Artifact RPM | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen-dbg.x86_64.rpm.zip | |
path: | | |
build/debug/_packages/ivi-homescreen-dbg-*.x86_64.rpm | |
- name: Configure Release | |
run: | | |
mkdir -p ${{github.workspace}}/build/release | |
cmake \ | |
-B ${{github.workspace}}/build/release \ | |
-D CMAKE_BUILD_TYPE=Release \ | |
-D CMAKE_STAGING_PREFIX=${{github.workspace}}/build/staging/usr/local \ | |
-D BUILD_NUMBER=${GITHUB_RUN_ID} \ | |
-D CMAKE_VERBOSE_MAKEFILE=ON | |
- name: Build Release Packages | |
working-directory: ${{github.workspace}}/build/release | |
run: | | |
rm -rf _packages || true | |
make homescreen VERBOSE=1 | |
make package VERBOSE=1 | |
ls -la _packages | |
echo "Release Info" | |
ls -la shell/homescreen | |
echo "Strip executable" | |
strip shell/homescreen | |
ls -la shell/homescreen | |
echo "List Dependencies" | |
ldd shell/homescreen | |
- name: Publish Release Artifact TGZ | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen.Linux.tar.gz.zip | |
path: | | |
build/release/_packages/ivi-homescreen-*-Linux.tar.gz | |
- name: Publish Release Artifact Debian | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen.amd64.deb.zip | |
path: | | |
build/release/_packages/ivi-homescreen_*_amd64.deb | |
- name: Publish Release Artifact RPM | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ivi-homescreen.x86_64.rpm.zip | |
path: | | |
build/release/_packages/ivi-homescreen-*.x86_64.rpm |