2022-02-01 15:48:56 -05:00
|
|
|
# GitHub Actions Workflow to build Simulator for PineTime Smart Watch LVGL Interface
|
|
|
|
|
|
|
|
name: Build PineTime LVGL Simulator
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-05-10 15:19:36 -04:00
|
|
|
branches: [ master, develop ]
|
2022-07-05 02:22:29 -04:00
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- 'images/**'
|
2022-08-10 19:42:17 -04:00
|
|
|
- '**.md'
|
2022-02-01 15:48:56 -05:00
|
|
|
pull_request:
|
2022-07-10 10:46:24 -04:00
|
|
|
branches: [ develop ]
|
2022-07-05 02:22:29 -04:00
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- 'images/**'
|
2022-08-10 19:42:17 -04:00
|
|
|
- '**.md'
|
2022-07-10 10:46:24 -04:00
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
2022-02-01 15:48:56 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
#########################################################################################
|
|
|
|
# Download and Install Dependencies
|
|
|
|
|
|
|
|
- name: Install cmake
|
|
|
|
uses: lukka/get-cmake@v3.18.3
|
|
|
|
|
|
|
|
- name: Install SDL2 development package
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install libsdl2-dev
|
|
|
|
|
2022-04-20 13:53:10 -04:00
|
|
|
- name: Install lv_font_conv
|
|
|
|
run:
|
2022-04-24 11:49:15 -04:00
|
|
|
npm i -g lv_font_conv@1.5.2
|
2022-04-20 13:53:10 -04:00
|
|
|
|
2022-02-01 15:48:56 -05:00
|
|
|
#########################################################################################
|
|
|
|
# Checkout
|
|
|
|
|
|
|
|
- name: Checkout source files
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
#########################################################################################
|
|
|
|
# get InfiniSim repo
|
|
|
|
|
|
|
|
- name: Get InfiniSim repo
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/InfiniTimeOrg/InfiniSim.git --depth 1 --branch main
|
2022-03-08 15:28:57 -05:00
|
|
|
git -C InfiniSim submodule update --init lv_drivers libpng
|
2022-02-01 15:48:56 -05:00
|
|
|
|
|
|
|
#########################################################################################
|
|
|
|
# CMake
|
|
|
|
|
|
|
|
- name: CMake
|
|
|
|
run: |
|
|
|
|
cmake -G Ninja -S InfiniSim -B build_lv_sim -DInfiniTime_DIR="${PWD}"
|
|
|
|
|
|
|
|
#########################################################################################
|
|
|
|
# Build and Upload simulator
|
|
|
|
|
|
|
|
- name: Build simulator executable
|
|
|
|
run: |
|
|
|
|
cmake --build build_lv_sim
|
|
|
|
|
|
|
|
- name: Upload simulator executable
|
2022-05-02 05:26:45 -04:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-02-01 15:48:56 -05:00
|
|
|
with:
|
2022-05-02 05:26:45 -04:00
|
|
|
name: infinisim-${{ github.head_ref }}
|
2022-02-01 15:48:56 -05:00
|
|
|
path: build_lv_sim/infinisim
|