summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2022-09-11 14:59:49 +0200
committerJean-François Milants <jf@codingfield.com>2022-09-11 14:59:49 +0200
commitada2c09581d2d13acfa5ce9a97671c0ec17863f1 (patch)
tree2f776adc59d0c63e403d2043cb8460e65d6c46fe /.github/workflows/main.yml
parent18cff286c75f432095db4b188e0f9a8a9e2bd8e8 (diff)
parentc9a5c3fa5c930a5939d3114a6c6b48570d61ca24 (diff)
Merge branch 'develop' into infineat-external-resources
# Conflicts: # src/displayapp/screens/Symbols.h # src/displayapp/screens/settings/SettingWatchFace.cpp # src/displayapp/screens/settings/SettingWatchFace.h
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml55
1 files changed, 47 insertions, 8 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8d129726..b8a70b6e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,18 +1,18 @@
-# GitHub Actions Workflow to build FreeRTOS Firmware for PineTime Smart Watch
-# See https://lupyuen.github.io/pinetime-rust-mynewt/articles/cloud
-# Based on https://github.com/JF002/InfiniTime/blob/master/doc/buildAndProgram.md
-# and https://github.com/JF002/InfiniTime/blob/master/bootloader/README.md
-
-name: Build PineTime Firmware
+name: CI
+# Run this workflow whenever the build may be affected
on:
push:
branches: [ master, develop ]
+ paths-ignore:
+ - 'doc/**'
pull_request:
- branches: [ master, develop ]
+ branches: [ develop ]
+ paths-ignore:
+ - 'doc/**'
jobs:
- build:
+ build-firmware:
runs-on: ubuntu-latest
container:
image: infinitime/infinitime-build
@@ -45,3 +45,42 @@ jobs:
with:
name: InfiniTime MCUBoot image ${{ github.head_ref }}
path: ./build/output/pinetime-mcuboot-app-image-*.bin
+
+ build-simulator:
+ runs-on: ubuntu-latest
+ steps:
+ - 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
+
+ - name: Install lv_font_conv
+ run:
+ npm i -g lv_font_conv@1.5.2
+
+ - name: Checkout source files
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Get InfiniSim repo
+ run: |
+ git clone https://github.com/InfiniTimeOrg/InfiniSim.git --depth 1 --branch main
+ git -C InfiniSim submodule update --init lv_drivers libpng
+
+ - name: CMake
+ run: |
+ cmake -G Ninja -S InfiniSim -B build_lv_sim -DInfiniTime_DIR="${PWD}"
+
+ - name: Build simulator executable
+ run: |
+ cmake --build build_lv_sim
+
+ - name: Upload simulator executable
+ uses: actions/upload-artifact@v3
+ with:
+ name: infinisim-${{ github.head_ref }}
+ path: build_lv_sim/infinisim